This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
In my instruction,it said: 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>] Your programs must not require use of command line arguments other than the single mode flag, which must be supported. Your programs must not require use of command line property specifications. All configuration must be done via a GUI, and must be persistent between runs of the program. Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory. 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.
Can anybody tell me how to jar it,and how to run it with java -jar command?
Note to Jim: That tutorial should probably be on the SCJD FAQ and links page <cough> Ahem. Yes, right. Along with a few other changes which I seem to have forgetten about, eh? Sorry, I must've been at the wheel. Will update shortly.
"I'm not back." - Bill Harding, Twister
Joined: Dec 17, 2002
Hi Andrew, I know sth about JAR file,but I still confused about what the instructions said.My program now,can be run by command line(both server and client),after jar my classes,I should run both of them with java -jar jarname [mode],am I right about it?
author and jackaroo
Hey, I put my ServerGUI.class into my suncertify.dbserver package, and ClientGUI.class into suncertify.dbclient package, then my question is : if I should create a main class and put it into suncertify package and run it according to its command line? Damu
author and jackaroo