File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Arranging Files in right package ?" Watch "Arranging Files in right package ?" New topic

Arranging Files in right package ?

Talib Ali

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 "" in package called suncertify.db. I kept file in suncertify folder and on compiling ":\>javac -d ." 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.

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

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

Unfortunately this is wrong. must be in src\suncertify\db folder. MUST contain the statement "package suncertify.db".

You have to go to folder src and then call:

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



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

Joined: Feb 23, 2008
Posts: 8
Thank you very much Thomas! I think it'll solve my intial problem
I agree. Here's the link:
subject: Arranging Files in right package ?
It's not a secret anymore!