Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with packages and classpath

 
sukal mondal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Im having trouble compiling my application as i have divided it into various packages..
this is how the directory structure looks like..

- MANDIR
- Application

- Libapp
- SRC
- GUI

- ShoppingApp
- SRC
- GUI

- ServerGUI ( Contains main gui form )

- Framework

Now my main gui form in under ServerGUI package, imports other gui forms from LibApp.GUI and ShoppingApp.GUI packages..

this is where i get the error.. On Compilation, the compiler returns error message saying that these packages do not exist.. However, I have compiled the LibApp package and then the ShoppinApp package already.

i ran the project without the packaging and it runs fine... is there a way to get this working, i really need to module them and get them working fast.

Each class in the folder i have defined package name according to the root MANDIR.. e.g. package MANDIR.Application.LibApp.GUI; for those under that directory...
Hope im doing it right..

my classpath setting is :

C:\j2sdk1.4.2_04\jre\lib\ext;C:\j2sdk1.4.2_04\bin;c:\aglets\lib\classes;c:\aglets\lib;c:\aglets\public;C:\Aglets\public\MANDIR;

c:\aglets\public\mandir is the project folder... and all compiled classes are in this according to the above directory path..

Any help will be appreciated.
Thanks
Sukal
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please post the EXACT error message you recieve? Paraphrasing often loses critical information that we need to help you.

Also, your directory structure lost all its whitespace so it probably doesn't display as you intended. You can use the UBB CODE tags to preserve your formatting in order to get it to display the way you want. Feel free to go back and edit your original post to fix this.

Layne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic