File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes packaging 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 "packaging" Watch "packaging" New topic
Author

packaging

morten wilken
Greenhorn

Joined: May 25, 2002
Posts: 13
hi all,
i was wondering, my first idea was to package the entire code in one jar file, and the let a parameter decide if i was starting it as a client, a server or a standalone client, like this:
java -jar project.jar server
java -jar project.jar client
java -jar project.jar standalone
but is this in violation of what the instructions say about allowed parameters?
and if so, how do you go about it without having to package the same code in several jar files.
sincerely
morten wilken
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

Make seperate jar files. It isn't too difficult.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Abhinav Anand
Ranch Hand

Joined: May 02, 2002
Posts: 113
Hi,
I have one jar file named scjd-assignment.jar. This jar file contains three separate jar files.
They are client.jar, server.jar, src.jar
As the name suggests client.jar is for client program.
Server.jar is for server program
and the src.jar is the complete source code
Thanks, Hope it helps
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: packaging