File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes tzupdater help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "tzupdater help" Watch "tzupdater help" New topic
Author

tzupdater help

nikki lorenzo
Greenhorn

Joined: Jan 12, 2004
Posts: 28
Hi,

We're runnning into timezone problems when during our application testing locally. We are using jdk 1.3.1 which has the old timezone rules. We would like to updated locally installed jres (i.e. localhost) by using the TZUpdater tool. But I'm running into UnsupportedClassVersionError(below).

What i did was to extract the tzupdater.jar on \eclipse\jre\bin and run the command: java -jar tzupdater.jar -u -f -v
What did i do wrong? Please help. Thanks.

Error:
C:\Program Files\IBMWebSphere Studio\Application Developer\v5.1.1\eclipse\jre\bin>java -jar tzupdater.jar -u -f -v
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/sun/tools
/tzupdater/TimezoneUpdater (Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:703)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:13
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:320)
at java.net.URLClassLoader.access$400(URLClassLoader.java:93)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:678)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:239)
at java.lang.ClassLoader.loadClass(ClassLoader.java:516)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:460)
at java.lang.ClassLoader.loadClass(ClassLoader.java:448)
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Looks like the timezone update tool cannot be run on 1.3. Can you upgrade to 1.3.1_18 or one of the 1.4.2 versions?

US DST and Java SE FAQ

Java SE Version: Java SE v1.3.1
US 2007 DST Readiness: Java SE update release v1.3.1_18 and above are USA 2007 DST "ready"
Availability: Downloadable now. Install instructions for: Solaris, Windows, and Linux
Remediation Options: The Timezone Update Tool cannot be used on Sun JDK version 1.3.1 or earlier.

TZ updater readme
[ February 14, 2007: Message edited by: Carol Enderlin ]
Mathew Abraham
Greenhorn

Joined: Feb 14, 2007
Posts: 1
Hey nikki ,

The TZupdate is only for JDK 1.4 or later , for anything before that you'll have to upgrade to the later minor version of that version, in your case to JDK 1.3.1_18 .
Check out http://java.sun.com/developer/technicalArticles/Intl/tzupdatertool.html

Mathew
Diego Bowen
Ranch Hand

Joined: Aug 19, 2003
Posts: 50
Hello I've just updated per Sun instructions as seen below:

somemachine:/home/diego/tzupdater2007a$ sudo java -jar tzupdater.jar -u -f
Password:
somemachine:/home/diego/tzupdater2007a$

However how can I validate its correct install??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tzupdater help