• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

packaging

 
morten wilken
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make seperate jar files. It isn't too difficult.
Mark
 
Abhinav Anand
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic