Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

problem with pakages and classpath

 
sukal mondal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
    Bookmark Topic Watch Topic
  • New Topic