File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Submission and startup of the client and of the server 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 "Submission and startup of the client and of the server" Watch "Submission and startup of the client and of the server" New topic

Submission and startup of the client and of the server

Olena Golub
Ranch Hand

Joined: Jan 17, 2005
Posts: 113
Hello everyone,

I have some questions about submission and startup of the client and server.

As I understand my assignment correctly I need to make only one jar and call it runme.jar.
In this jahr I should pack all documentations, client.jar and server.jar.
How my client or server will be started by examiner?
Does he/she unpack the runme.jar? And will start server in this way:

and the client in this way:

Or will the application-parts be started directly from runme.jar? Something like this:

I am thinking now to create the startup-class for client and server and I have some doubts.

if the server and client will be started from server.jar or client.jar corresponding:
Do I need two startup class (a class with main-Method): one for startup of the client and the another one
for startup of the server? One will be zipped in server.jar and the another one in client.jar.
�r should I make only one startup-class that starts server, or remote client, or standalone and put
it twice one in these jars?

If the application will be started from runme.jar:
I will create one startup-class and put it in one of the both jars?
How do you think what is correct way to do this?

Thanks a lot for your help!

SCJP 1.4<br />SCJD 1.4 (in progress)
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 805
Hi, Olena -

You submit one executable jar. The mode switch tells the program which mode to start in. Please read Sun's instructions carefully; they explain exactly what you need to provide for your submission.

Also, you may want to read the back third of the Sierra/Bates book, because they explain in some detail the submission requirements.

Good luck.

Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Frans Janssen
Ranch Hand

Joined: Dec 29, 2004
Posts: 357

Both server and client are directly started from runme.jar. So they both share the same start-up class and runme.jar is not decompressed.

As pointed out above, this is described precisely in your instructions and perhaps slightly more comprehensible in the Kathy&Bert book. You might want to read these until you are completely sure you have understood it, because making a mistake here will lead to auto-failure.

Note that your final submission is also a jar file. This jar file is not executable and will be decompressed by the assessor. It contains runme.jar and your documentation files. Your documentation files should not be included in runme.jar (except maybe for any online help files).


Ed Villamizar
Ranch Hand

Joined: Sep 02, 2004
Posts: 47

I was also confused by the runme.jar file until, as recommended by Jeff and Frans, I read the pertinent sections in the K&B book.

I can tell you that an easy way to do this is to assign the job of instantiating and initializing the required objects, which will vary depending on the mode the application is starting in, to some kind of factory class that specializes in starting the application.


MBA, PMP<br />SCJP, SCJD<br />ITIL Foundations Certified.
I agree. Here's the link:
subject: Submission and startup of the client and of the server
It's not a secret anymore!