This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes The ultimate packaging question 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 "The ultimate packaging question" Watch "The ultimate packaging question" New topic

The ultimate packaging question

Aruna Raghavan
Ranch Hand

Joined: May 14, 2002
Posts: 194
Hi All,
I am wondering if it is acceptable to have two jar files, one for server and one for client.
I have been using JBuilder and two separate projects so far, one for server and one for the client. I do have my packages named suncertify.server and suncertify.client to comply with the requirements.
The question is - do the source files have to be under the suncertify tree?
I tried to use a tree structure with jbuilder but couldn't quite get it to work.
Please let me know if the question is not clear.

Aruna A. Raghavan<br />SCJP, SCJD, SCWCD
Aruna Raghavan
Ranch Hand

Joined: May 14, 2002
Posts: 194
I forgot to add that now I have it like this:
suncertify/client dir has all JBuilder project specific files and
src/suncertify/client and

suncertify/server has all JBuilder project specific files and
src/suncertify/server and
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17271

Actually everyone has two jar files. client.jar and server.jar.
As far as directory structure and an IDE, I cannot comment on how you do that.
My directory structure was easy
All .class and source files were in those directories. It actually would have been better to add one more being.
so that my packages seperated the db from the server.

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Peter den Haan
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Originally posted by Mark Spritzler:
Actually everyone has two jar files. client.jar and server.jar.
I didn't I had client.jar, server.jar and common.jar. The latter contained those classes that were used by both client and server. The Class-Path manifest attribute can be used to glue the jars together.
I wouldn't think the choice you make here has the slightest impact on your score however.
- Peter
[ January 11, 2003: Message edited by: Peter den Haan ]
Have you checked out Aspose?
subject: The ultimate packaging question
It's not a secret anymore!