| 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
|
 |
 |
|
|
subject: Arranging Files in right package ?
|
|
|