This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX: Directory Structure" Watch "NX: Directory Structure" New topic
Author

NX: Directory Structure

Roy Augustine
Ranch Hand

Joined: Jul 08, 2003
Posts: 30
Hi All
Q1.
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

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

But specification says
Your data access class must be called "Data.java", 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?
Q3.
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
Ajai
[ 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:
suncertify/db
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,
George


Regards, George
SCJP, SCJD, SCWCD, SCBCD
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
Ajai
 
I agree. Here's the link: http://aspose.com/file-tools
 
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