The deadline of the beta is coming fast and I'd like to be sure of something... The (my) assignment states that the submission should be packaged in a single JAR file having the following content:
... The executable JAR containing the programs. This must be called runme.jar ...
Now, my problem is that there are two programs, the client and the server. Only one program can be run from a JAR file. What I did is to include the client program in runme.jar and the server program in server.jar. Does this seem correct? Or am I missing something here? Thanks for your enlightenment
The client and server should both be in runme.jar You should be able to run the client with: java -jar runme.jar You should be able to run the server with: java -jar runme.jar server You should be able to run non-networked mode version with: java -jar runme.jar alone
Joined: Jun 18, 2002
Only one program can be run from a JAR file.
Oh yeah I used a main class for the jar file that takes the command line argument and runs the appropriate program.