This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes runme.jar file confusion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "runme.jar file confusion" Watch "runme.jar file confusion" New topic
Author

runme.jar file confusion

Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
I've seen many posts with statements that the submission jar file will contain other jar files. According to the B&S specification, only one jar file is required "runme.jar". Is there a requirement I overlooked or is there some reason for multiple jar files that I'm not understanding? Can someone please clarify?

Thank you.
Cindy Rogers
Ranch Hand

Joined: May 17, 2006
Posts: 31
Shannon, I had the URLyBird assignment which may be slightly different.

The instructions to upload your assignment will tell you to package all of the elements into a single jar file (whose name is defined in the instructions; it's based on your Prometric/Sun ID).

So I had 2 jar files: the runme.jar containing the code; and the jar file containing all elements of the submission.
Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Hi Cindy,
Thanks for your response. When you say instructions, are you referring to the "Application Submission"? Under Packaging of Submissions, it states the following:

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.
The original, unchanged database file that was supplied to you. Note that you must keep a copy of the original database file supplied to you, and this must be the file you submit. The marking process will expect the exact same data without any changes.
A directory called code, containing all the source code and related parts of your project. You must create subdirectories within this to reflect your package structure and distribute your source files within those directories.
A file called version.txt. This must contain pure ASCII (not a word processor format) indicating the exact version of JDK you used, and the host platform you worked on.
A directory called docs, containing the following items at the top level:
This html file.
A subdirectory called javadoc, containing HTML/Javadoc documentation for all classes and interfaces you are submitting.
A file called choices.txt that containing pure ASCII (not a word processor format) text describing the significant design choices you made. Detail the problems you perceived, the issues surrounding them, your value judgments, and the decisions that you made. This document should also describe any uncertainties you had regarding the project, and the decisions you made when resolving them.
User documentation for the database server and the gui client. If your user documentation is online then you may omit this file. However, if the documentation is not online, you must provide either a single plain ASCII (not word processor format) text document, which must be called userguide.txt, or multiple HTML files which must all be accessible from a starting point document that must be called userguide.html.

Based on the above, it doesn't state the need for nested jar files. However, I've seen many other posts stating the use of other jar files, a client and server...which has lead me to wonder if I've missed something. This project has been a beating and I'm ready to finish this project, so I'm trying to ensure I didn't overlook a requirement.

Thanks for your feedback.
Jeremy Botha
Ranch Hand

Joined: Feb 16, 2005
Posts: 125
Hi, Shannon

if you read carefully, it does.

It says:
'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'
(I.E. Top level directory of your submission jar file)
1) The executable jar file. (I.E. runme.jar must be inside the submission jar file.
etc etc

hope this helps
Jeremy


McFinnigan? Never heard of him. Nobody here but us chickens...<br /> <br />SCJP for Java 1.4<br />SCJD for Java 5.0
Cindy Rogers
Ranch Hand

Joined: May 17, 2006
Posts: 31
Shannon, the "instructions" I referenced are the ones you will see during the Upload process. At that time you are given the format for the jar file name (for example, for mine it was "scjda-spxxxxxxx.jar", where "spxxxxxxx" is my Prometric/Sun ID).
Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Hi,
Thanks for the reply. So, there is only one jar file "runme.jar" and no executable jars inside the runme.jar file? The runme.jar should run using the three modes "blank", "server" and "alone".

Cindy,
Based on your feedback, the runme.jar will be included in the submission jar file (name given by Prometrics). I accidently lost my e-mail that came with the instructions how to submit my assignment. Do you know how I can get this information?

Thanks for your replies.
Cindy Rogers
Ranch Hand

Joined: May 17, 2006
Posts: 31
Shannon,


>> Thanks for the reply. So, there is only one jar file "runme.jar" and no
>> executable jars inside the runme.jar file? The runme.jar should run
>> using the three modes "blank", "server" and "alone".

For my assignment, that is correct: the executable code was in the runme.jar, and all of the stuff submitted (including the runme.jar) was packaged in the username-specific jar file.

I think earlier versions of the SCJD required different executable jar files for the client side and server side - but not this one.

Again, for my assignment, the modes were "server", "alone", and not specified (indicating network client) - but follow whatever your assignment states....

>> Cindy,
>> Based on your feedback, the runme.jar will be included in the submission
>> jar file (name given by Prometrics). I accidently lost my e-mail that
>> came with the instructions how to submit my assignment. Do you know how
>> I can get this information?

The instructions I referred to are given to you during the Upload process - that is, after you press the Upload button on the Sun/Prometric website. So you haven't been given them yet...

Regarding the e-mail that you lost, I don't have my copy anymore. You could try contacting who2contact@sun.com . The one non-obvious step is requesting permission (I believe from Prometric rather than Sun) before you can upload the assignment, and it usually takes 1-3 days for the permission to be granted. Other posts have discussed that step, so you should be able to track down the e-mail address where you request authorization from.

Cindy
Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Thank you, thank you Cindy for your feedback. You have been a great help!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: runme.jar file confusion