File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

problem with pakages and classpath

sukal mondal

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..

- Application

- Libapp

- ShoppingApp

- 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:\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.
Ilja Preuss

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

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
I agree. Here's the link:
subject: problem with pakages and classpath
It's not a secret anymore!