4

I want to update the timezone data in Java. As I understood it might be solved using java -jar tzupdater.jar --update. But I get the error:

Cant create directory {0}

Java version is:

java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

What's wrong?

Duncan Jones
  • 67,400
  • 29
  • 193
  • 254
Tony
  • 3,605
  • 14
  • 52
  • 84

1 Answers1

4

This error will occur if you run tzupdater.jar with insufficient privileges to create or edit the timezone data in the directory containing your Java installation.

You probably need to be an administrator user if you are on Windows. See this related bug report (although they don't get your exact error).

Duncan Jones
  • 67,400
  • 29
  • 193
  • 254