Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Format of the command line: [server] or server?

 
Zee Ho
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
plan to upload it tomorrow. But found in spec :
When you submit your assignment, each part (client and server) must be executable using a command of this exact form:
java -jar <path_and_filename> [<mode>]


That means the command line should be like
java -jar c:\runme.jar [server]
or
java -jar c:\runme.jar server

is the bracket necessary? since there is a "must", I am so afraid..
[ May 04, 2005: Message edited by: Zee Ho ]
 
Olena Golub
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Zee,

as I know the right way is:

java -jar c:\runme.jar server


Regards
Olena
 
Zee Ho
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
um~~seems you are also in progress. Maybe there is someone who passed it will offer us an answer!! thx in advance.
 
Frank Hardy
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Zee,

as I know brackets are a common syntax for commandline parameters to describe that a parameter is optional. Like placeholders for specific values which are in "lower-greater than" characters.
As you know: no parameter means to start the network client.

Hope this is a help for you.

Greetz,

Franky.
 
Ken Boyd
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. java -jar c:\tmp\runme.jar server
means indicating the server program must run

2. java -jar c:\tmp\runme.jar alone
indicating standalone mode

3. java -jar c:\tmp\runme.jar
left out entirely in which case the network client and GUI must run.

so you might have three options "server", "alone" or nothing for replacing your [<mode>]
[ May 04, 2005: Message edited by: Nehul Nalekar ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic