Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to lanch the application

 
Shengzhi Peng
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to start runme.jar . I have two mode to choose.
java -jar runme.jar server
java -jar runme.jar alone
I don't know the server means what.Does it mean the server must lanch with
the client or just mean the client lanch in server mode,and the server should lanch by running another .class file?
Thank you very much.
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you also have another one:

java -jar runme.jar (your client application)

Regards,
Darya
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Java David

Your name does not meet the requirements of the JavaRanch official policy on registered names. Please change it at Your Profile.

Thank you.

Andrew Monkhouse
Bartender (Moderator) SCJD Forum
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David

Please take the time to read the JavaRanch official policy on registered names. We need both a first and last name, and it must appear to be a real name. Please change it at Your Profile.

Thank you.

Andrew Monkhouse
Bartender (Moderator) SCJD Forum
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shengzhi Peng,

Originally posted by Java David:
to start runme.jar . I have two mode to choose.
java -jar runme.jar server
java -jar runme.jar alone
I don't know the server means what.Does it mean the server must lanch with
the client or just mean the client lanch in server mode,and the server should lanch by running another .class file?
Thank you very much.


If you run:
  • java -jar runme.jar server

  • Your server application will start. No client application should start. Your server application should allow the user to enter any configuration items such as specifying where the database (file) is.
  • java -jar runme.jar

  • Your networked client application will start. The server application should have been started before running this, however you should still be able to handle the case where the server is not running (by displaying a suitable error message). Your networked application should allow the user to enter any configuration items such as specifying where the database (server) is.
  • java -jar runme.jar alone


  • Your standalone client application will start. No server application should start, and no networked code or serialization should be used. Your client application should allow the user to enter any configuration items such as specifying where the database (file) is.

    Regards, Andrew
    [ July 14, 2005: Message edited by: Andrew Monkhouse ]
     
    Andrew Monkhouse
    author and jackaroo
    Marshal Commander
    Pie
    Posts: 12014
    220
    C++ Firefox Browser IntelliJ IDE Java Mac Oracle
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Or, to put it another way, consider if you wrote one application to run the server:And another application to run the client:Then you could write a master application that will run one of those two applications based on the command line argument:Obviously I have left a lot out of that example (especially error handling!) but maybe that makes it a bit clearer.

    Regards, Andrew
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic