Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
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 ]
 
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.
 
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.
 
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 ]
 
    Bookmark Topic Watch Topic
  • New Topic