This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Arranging Files in right package ?

 
Talib Ali
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Talib Ali
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Thomas! I think it'll solve my intial problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic