*
The moose likes Beginning Java and the fly likes problem with packages and classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "problem with packages and classpath" Watch "problem with packages and classpath" New topic
Author

problem with packages and classpath

sukal mondal
Greenhorn

Joined: Jan 13, 2005
Posts: 2
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

Joined: Dec 06, 2001
Posts: 3061
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


Java API Documentation
The Java Tutorial
 
jQuery in Action, 2nd edition
 
subject: problem with packages and classpath