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 Arranging Files in right package ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Arranging Files in right package ?" Watch "Arranging Files in right package ?" New topic
Author

Arranging Files in right package ?

Talib Ali
Greenhorn

Joined: Feb 23, 2008
Posts: 8
Hi to all!

I just started work on B&S assignment .

Infact i'm facing problem in keeping the files in exact package i.e; suncertify.db Its the requirement of project to keep "Data.java" in package called suncertify.db. I kept Data.java file in suncertify folder and on compiling ":\>javac -d . Data.java" system created two folders suncertify\db inside the folder db at ist level.

Also faced alomost same problem when tried in "eclipse"

Can anyone of you please give me guidance for keeping files properly in the described package.

Talib
[ February 23, 2008: Message edited by: Talib Ali ]
Thomas Heiss
Greenhorn

Joined: Feb 20, 2008
Posts: 9
Dear Talib,

Unfortunately this is wrong.

Data.java must be in src\suncertify\db folder.

Data.java MUST contain the statement "package suncertify.db".

You have to go to folder src and then call:

javac -d . suncertify\db\Data.java which will place your Data.class inside src\suncertify\db folder.

Regards

Thomas


Technical J2EE Solution Consultant<br /> - Specialist for Middleware and Messaging solutions --<br />Certified SCJP 5.0, SCBCD 1.3, SCEA I (SCJD, SCEA II/III running)
Talib Ali
Greenhorn

Joined: Feb 23, 2008
Posts: 8
Thank you very much Thomas! I think it'll solve my intial problem
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Arranging Files in right package ?
 
Similar Threads
NX: UrlyBird "suncertify" package?
"package" and "import" problem
packaging the runme.jar
Jar file for the codebase
URLyBird: runme.jar