File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes jar question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "jar question" Watch "jar question" New topic

jar question

Payal Shah
Ranch Hand

Joined: Jul 10, 2006
Posts: 67
I used the following to zip everything togather

jar -cf XXXXXXX.jar runme.jar db-1x3.db code version.txt docs

one thing i notice is that
db-1x3.db has original date modified = 4/8/2003 11:51AM
when jar, it changed to 4/8/2003 12:51PM

same thing to instruction.html..

The size is same..should i be worry or is there a way to make sure it does not change?

thank you
Jeffry Kristianto Yanuar
Ranch Hand

Joined: Oct 01, 2007
Posts: 759
I think it is not a problem as long as the content doesn't change. I didn't checked the last modified date when I created the JAR file. Please consider the others opinion before finally upload it to Sun. If necessary, contact Sun.

Jeffry Kristianto Yanuar (Java Instructor) SCJP 5.0, SCJA, SCJD (UrlyBird 1.3.2)
Payal Shah
Ranch Hand

Joined: Jul 10, 2006
Posts: 67
thank you Jeffry. i am guessing this might be daylight time issue.

I agree. Here's the link:
subject: jar question
It's not a secret anymore!