Two Laptop Bag*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes I am close  to submit - Quetion a bout how  to package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "I am close  to submit - Quetion a bout how  to package" Watch "I am close  to submit - Quetion a bout how  to package" New topic
Author

I am close to submit - Quetion a bout how to package

Mike Tilling
Ranch Hand

Joined: Feb 17, 2006
Posts: 86
Hi,

It was mentioned in my Assignment (UrlyBird) that your data access class must be called "Data. Java", must be in a package called "suncertify.db". Any unimplemented exceptions in this interface (DBmain) must all be created as member classes of the suncertify.db package.

-The other classes must be in the same package or must be in a different package? If it is a different package, does this must be suncertify?

-When packaging the classes into a single JAR file (runme.jar), do we have to reflect the packages structure?, for example, Data.class must go under suncertify/db directory?
Oliver Weikopf
Ranch Hand

Joined: Feb 17, 2004
Posts: 58
The other classes should be under suncertify.xxx, where xxx should only be db for those classes that are concerned with database access.
I, for example, have the following packages:
suncertify.db
suncertify.gui
suncertify.locking
suncertify.rmi
suncertify.util

And yes, the structure needs to be reflected in the jar file. It won't execute otherwise.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: I am close to submit - Quetion a bout how to package
 
Similar Threads
NX: package problem
Packaging the classes you write for the SCJD
Please Help!
Package Name rule ?
FBNS: Package structure review