• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Submission and startup of the client and of the server

Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
Ranch Hand
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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).

Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

Villains always have antidotes. They're funny that way. Here's an antidote disguised as a tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic