Forums Register Login

Packaging

+Pie Number of slices to send: Send
 

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.



Hello,
The following instructions were in my project spec regarding packaging. Does this mean that I should have one jar file (runme.jar) wrapped up in an overall jar file (containing all artifacts)? Can I call the overall jar file anything I want. I'm worried that the instructor might try to run the overall jar file instead of digging the runme.jar one out first and running that.
Any help appreciated here.
Thanks,
Jon
+Pie Number of slices to send: Send
Hi,

Originally posted by Jon Culloty:

Does this mean that I should have one jar file (runme.jar) wrapped up in an overall jar file (containing all artifacts)? Can I call the overall jar file anything I want.



Yes, the application jar should go inside a bigger overall jar file. The name of the overall jar file was not specified for me, so I am going to just make up a name for it.

I am assuming that the examiner knows to pull out the runme.jar from the overall jar and use that to see our application working.

Cheers, Jared.
+Pie Number of slices to send: Send
Thanks Jared, I'm going with one Jar file (runme.jar) inside another one (all artifacts).

When building runme.jar, should i include the .java files in the jar? Or only the .class files? Since the .java files are not needed at runtime and the .java files will be inside the overall jar anyways.

Cheers !
+Pie Number of slices to send: Send
Hi,

Originally posted by Jon Culloty:

When building runme.jar, should i include the .java files in the jar? Or only the .class files? Since the .java files are not needed at runtime and the .java files will be inside the overall jar anyways.



You are right, .java files are not needed at runtime. However, just make sure you provide the deliverables asked for. If your spec says to include them in the runme.jar then do it. Otherwise, you can safely omit them (but you probably need to include them somewhere else in the overall jar file).

Cheers, Jared.
+Pie Number of slices to send: Send
According to a previous edition of the SCJD book the name of the final file will be provided to you when you get the upload instructions.
I am a man of mystery. Mostly because of this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 790 times.
Similar Threads
Name of the submission jar
executing from jar file
Packaging of Submission
THE JAR REQUIREMENTS
name of the submittion jar file
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:41:24.