A
axrock
Hi,
Ok, firstly I know nothing about Java. But hoping somebody here has
got the skills to give me some pointers to fix a problem.
1. I use an application that is bundled with its own version of Java.
Problem is, the TimeZone is wrong and so to is the TZ Data.
2. I need to know how to change the TimeZone in the bundled version
from the command line. Because I then have to update about 50
computers. Command line would allow me to do it in one hit. TZupdater
is no good, as that only seems to update the system java. Not the java
our application uses.
Here is how the paths are defined.
/usr/local/javaapp/jvm/bin
java executable is in here
/usr/localjavaapp/jvm/lib
rt.jar is in here ( I notice a class in this file called TimeZone )
and figure this is the class I call to set it to what I want. Am I
correct?
I go to /usr/local/javaapp/jvm/bin and type:
../java -classpath /usr/local/javaapp/lib TimeZone=NZDT
However I get an error:
Exception in thread "main" java.lang.NoClassDefFoundError:
TimeZone=NZDT
My question is, what is the correct syntax to alter the TimeZone from
command line based on the above locations of the files?
Also, is this the way to do it, or is TimeZone class also in
another .jar file that I should be looking for?
Really appreciate your help, this is now taking me far to long to work
out and I am beginning to age trying to work it out myself.
Many thanks.
Ok, firstly I know nothing about Java. But hoping somebody here has
got the skills to give me some pointers to fix a problem.
1. I use an application that is bundled with its own version of Java.
Problem is, the TimeZone is wrong and so to is the TZ Data.
2. I need to know how to change the TimeZone in the bundled version
from the command line. Because I then have to update about 50
computers. Command line would allow me to do it in one hit. TZupdater
is no good, as that only seems to update the system java. Not the java
our application uses.
Here is how the paths are defined.
/usr/local/javaapp/jvm/bin
java executable is in here
/usr/localjavaapp/jvm/lib
rt.jar is in here ( I notice a class in this file called TimeZone )
and figure this is the class I call to set it to what I want. Am I
correct?
I go to /usr/local/javaapp/jvm/bin and type:
../java -classpath /usr/local/javaapp/lib TimeZone=NZDT
However I get an error:
Exception in thread "main" java.lang.NoClassDefFoundError:
TimeZone=NZDT
My question is, what is the correct syntax to alter the TimeZone from
command line based on the above locations of the files?
Also, is this the way to do it, or is TimeZone class also in
another .jar file that I should be looking for?
Really appreciate your help, this is now taking me far to long to work
out and I am beginning to age trying to work it out myself.
Many thanks.