This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: jar question
Similar Threads
URLyBird 1.3.3 - Last Valid Flag is missing?!
submitting the assignment
URLyBird Packaging
NX: What's wrong with me server?
JUnit: How to test read/write file