wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Several Questions about submissions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Several Questions about submissions" Watch "Several Questions about submissions" New topic
Author

Several Questions about submissions

Thomas Paul Bigbee
Ranch Hand

Joined: Jun 28, 2005
Posts: 71
The assigment states

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>]

All elements of your submission must be packaged in a single JAR file. The JAR file must have the following layout and contents in its root:
The executable JAR containing the programs. This must be called runme.jar.

I'm a little confused, an executable jar contains a mainfest which states which class is the entry into the jar, yet, there are two executables inside the jar "Server" and "Client (alone and Network)", my design requires the Server GUI to be started before the application will run in Network mode, my question is this being that the command

java -jar <path_and_filename> [<mode>] is required is it acceptable to do this?

java -jar -cp suncertify.application.Server runme.jar (for the server) and
java -jar -cp suncertify.application.Connection [mode] runme.jar

Also, it seem that there is a jar in a jar, is the grader expecting to unzip the main jar file, to get the the "runme.jar", the db and the docs?

Any feedback would be appreciated
Thanks, Tom
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11437
    
  85

Hi Thomas
is it acceptable to do this?

java -jar -cp suncertify.application.Server runme.jar (for the server) and
java -jar -cp suncertify.application.Connection [mode] runme.jar
No. The assessor must be able to run the server by typing:And they must be able to run the networked client by typing:And they must be able to run the standalone client by typing:If you do not support these three options you will fail. If you do support these three options, there is no need for alternatives .
Also, it seem that there is a jar in a jar, is the grader expecting to unzip the main jar file, to get the the "runme.jar", the db and the docs?
Yes.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
 
Consider Paul's rocket mass heater.
 
subject: Several Questions about submissions