Bookmark Topic Watch Topic
  • New Topic

Mode Flag Confusion

 
oli renard
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello, I have just received the instructions for the SCJD. The most confusing part is regarding the mode flag. The instructions state:
"Your programs must not require use of command line arguments other than the single mode flag, which must be supported. ... The mode flag must be either "server", indicating the server program must run, "alone", indicating standalone mode, or left out entirely, in which case the network client and gui must run."

Does this mean the following:
java -jar <path_and_filename> server = I only start the server and no GUI
java -jar <path_and_filename> = I only start the GUI
java -jar <path_and_filename> alone = ???
I am really unclear abouth this? Do I also let the user specify the location of the db file? Do I also let the user specify the RMI port if I choose RMI? Or can I just assume the defaults?
Thank you
 
dick dijk
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
Doesn't the instruction say that the mode flag is the ONLY parameter.
(In my case the db location must come from a config file suncertify.properties).
When the "alone" flag is specified the server AND the GUI must run (in my case).
Dick
 
oli renard
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Report post to moderator
Dick,
yes it does,, but this is the confusing thing. Under which circumstances is the GUI started? Is it started in all of the 3 modes? For example, when you run the command with the server mode, does the GUI appear or do you have to type in the command again without specifying any mode so that the GUI is started?
As for the properties file, I was not intending to use any as the instructions make it clear where the db file has to be located.
Thank you
 
Terry Martinson
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Report post to moderator
Oli - this seems similar to your other posting
I responded in there.
TJ
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Oli,
Originally posted by oli renard:
As for the properties file, I was not intending to use any as the instructions make it clear where the db file has to be located.

Obviously I don't have access to your instructions, but I'm surprised to hear this. It may be true, but if so it represents a simplication from the other assignment instructions I've heard about (including my own).
My assignment instructions state where the database file must appear in the jar file I submit, but I don't think you should rely on this to say you know where the database file will be when your application is installed somewhere and is executed. I would advise that you look carefully at your instructions again and see whether it was talking about how the submission must be packaged rather than where the database file can be when your application is executing.
Hope this helps,
George
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Oli. I am going to close this thread because it is a duplicate post. Please try to refrain from duplicate posting in the future. It looks like you just realized to add the "NX:" to your post. But you should have deleted the other thread to keep from duplicate posting.
p.s. I chose to close this one because of the # of posts difference. 4 versus 5 replies.
Thanks
Mark
 
    Bookmark Topic Watch Topic
  • New Topic