This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX: Directory Structure 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 "NX: Directory Structure" Watch "NX: Directory Structure" New topic

NX: Directory Structure

Roy Augustine
Ranch Hand

Joined: Jul 08, 2003
Posts: 30
Hi All
In packaging and submissions part my specification says,
A directory called code, containing all the source code and related part of your project. You must create subdirectories within this to reflect your package structure and distribute your source files within those directories.

I have no idea what they meant by that related part, any help

I have three packages and I think my directory should be like this

But specification says
Your data access class must be called "", must be in a package called "suncertify.db", and must implement the following interface:
package suncertify.db;
public interface DB

that makes me think that my directory structure should be like this

which will be right one?
I think all the class files should be in runme.jar, so whether I need to put class files in code directory.
Thanks in advance
[ January 03, 2004: Message edited by: Roy Augustine ]
[ January 03, 2004: Message edited by: Roy Augustine ]
[ January 03, 2004: Message edited by: Roy Augustine ]
George Marinkovich
Ranch Hand

Joined: Apr 15, 2003
Posts: 619
Hi Roy,
Q1. Well, if you use icons (for say, a toolbar) or an online user's guide, where do you put them? I think these things may come under the category of related parts of the program.
Q2. Consider the meaning of the package statement. For example,
package suncertify.db;
means that this class can be found in the following directory structure:
So I would say you would have something like:

Q3. As you say, if the class files are in the runme.jar file, then they shouldn't be in the code directory too. In fact, if you understand code to refer to source code, what would they be doing in the code directory anyway?
Hope this helps,

Regards, George
Roy Augustine
Ranch Hand

Joined: Jul 08, 2003
Posts: 30
Hi George
Your answers were so clear and straight and I think I am all set for now
Thanks for your help
subject: NX: Directory Structure
Similar Threads
Failed but I think SUN was wrong.
Launching From Command Line
File Structure
NX: UrlyBird "suncertify" package?
Question about package