File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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.
Thanks,
Aruna.


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
classes/suncertify/client.

suncertify/server has all JBuilder project specific files and
src/suncertify/server and
classes/suncertify/server.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

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
c:\devexam\suncertify\db
c:\devexam\suncertify\client
c:\devexam\suncertify\help
All .class and source files were in those directories. It actually would have been better to add one more being.
c:\devexam\suncertify\server
so that my packages seperated the db from the server.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Peter den Haan
author
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 ]
 
wood burning stoves
 
subject: The ultimate packaging question