aspose file tools*
The moose likes Java in General and the fly likes problem with pakages and classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

problem with pakages 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
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Hello Sukal,

welcome at JavaRanch!

Please don't crosspost your questions. I will close this post, please continue the discussion at http://www.coderanch.com/t/400158/java/java/packages-classpath


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
Consider Paul's rocket mass heater.
 
subject: problem with pakages and classpath