4
votes

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?

1
@HimaghnaDasgupta - That post is unrelated. - Matt Johnson-Pint
In other words, just run cmd.exe as an Administrator and then user the java -jar tzupdater.jar --update. - informatik01

1 Answers

4
votes

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).