Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX: Jar Packaging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX: Jar Packaging" Watch "NX: Jar Packaging" New topic

NX: Jar Packaging

Ta Ri Ki Sun
Ranch Hand

Joined: Mar 26, 2002
Posts: 442
quote :
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 initially understood this to mean that runme.jar will be used to extract other jars, ie client & server, but having re-read the mode flag section a few times again this seems to be way off, another quote :
When you submit your assignment, each part (client and server) must be executable using a command of this exact form:

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.

now what I understand or think I understand is that all modes are executed with java -jar runme.jar and then specifying whatever mode is relevant, and this would mean the client ends up having all files, even if they're not all needed, so where no mode is specified only gui package and common Data related interfaces/adapters and remote stub would be needed but instead he has everything.
have I misunderstood ?
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
The runme.jar contains everyting relevant to runtime excution of both clients and the server.
That is my interpretation. I think the idea is good because it makes the implementation of an RMI solution so much easier.
[ April 17, 2003: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
I agree. Here's the link:
subject: NX: Jar Packaging
It's not a secret anymore!