• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

packaging of beta

 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tybon Wu
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tybon Wu
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tybon. That's crystal clear
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic