The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Packaging of files Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Packaging of files" Watch "Packaging of files" New topic
Author

Packaging of files

Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
Hi,
I'm planning to have 4 jar files within main jar file.
1st jar file - All the class files required on client side ( including db.db for local mode).
2nd jar file - All the class files required on server side .
3rd jar file - Original source code.
4th jar file - All documents.
I really appreciate any suggestions/ideas .
Thanks
Douglas Kent
Ranch Hand

Joined: Oct 06, 2000
Posts: 171
That should be fine, as long as you have the README.txt file that shows what's what. Will your app install when the class files are unjarred? What about your user guide?
Tom Peillon
Greenhorn

Joined: Mar 30, 2001
Posts: 9
I would say that their is no advantage in having the original
source code and documents in a jar.
The main advantage of having a jar within a jar comes when the
inner jar is executable as this makes things easier for the
examiner.
Having the documents in a jar however means an extra step to
view the documents.
Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
I appreciate your feedback..
Now I�m thinking of having folders Original Source, New Source and Documents in the main jar file.
Folder Original Source will have Original Sourcecode
Folder New Source will have latest source code
Folder Documents will have all the documents
Root directory will have
Readme.txt
Client.jar - All the class files required on client side ( including db.db for local mode).
Server.jar - All the class files required on server side .
Douglas, I�m confused with your question �Will your app install when the class files are unjarred? �. Am I missing some functionality in jar file ?
Also I�m wondering whether tester will run the application directly from the jar file or they will unjar all class files before testing.
Thanks
Dilip
Tom Peillon
Greenhorn

Joined: Mar 30, 2001
Posts: 9
You need to tell the examiner how to run the various parts of the app in you readme file, so I guess if you tell them to run the app from the jar they will do so.
You will need to give the command-line invocation, eg:
$ java -jar server.jar
 
 
subject: Packaging of files
 
Threads others viewed
some JAR problems.
No class def found : com/bea/xml/XMLException
Ejb J2EE
How to create a war file.
Packaging a Swing application as exe
IntelliJ Java IDE