Operating System - HP-UX
1832098 Members
3040 Online
110038 Solutions
New Discussion

java jar -tvf file.jar reports time problem

 
SOLVED
Go to solution
Bill McNAMARA_1
Honored Contributor

java jar -tvf file.jar reports time problem

jar -tvf
reports time stamps in CET

where the system timezone in MET.

This is affecting the java app display only.. ie cosmetic, but still rather annoying.

How can I reconfigure java's timezone.

Later,
Bill
It works for me (tm)
3 REPLIES 3
Steven Sim Kok Leong
Honored Contributor

Re: java jar -tvf file.jar reports time problem

Hi,

I don't know if this helps:

http://www.bmsi.com/java/#TZ

Hope this helps. Regards.

Steven Sim Kok Leong
Alex Glennie
Honored Contributor
Solution

Re: java jar -tvf file.jar reports time problem

If TZ is only important for Java:
export TZ=Australia/Brisbane then run the java program.

see /opt/java1.3/jre/lib/tzmapping for appropriate settings

Another solution is to run java with the -D parm: eg -Duser.timezone=Australia/Brisbane
harry d brown jr
Honored Contributor

Re: java jar -tvf file.jar reports time problem

Wouldn't Java's time be set to the time zone Columbia is in, or is it set to the time zone for the Island of Java?

Man I'm confusing myself (-:


live free or die
harry
Live Free or Die