jQuery in Action, 3rd edition
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "packaging" Watch "packaging" New topic


morten wilken

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.
morten wilken
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

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

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Abhinav Anand
Ranch Hand

Joined: May 02, 2002
Posts: 113
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
It is sorta covered in the JavaRanch Style Guide.
subject: packaging
jQuery in Action, 3rd edition