• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tzupdater help

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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??
reply
    Bookmark Topic Watch Topic
  • New Topic