File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

problem with packages 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.
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.


Java API Documentation
The Java Tutorial
It is sorta covered in the JavaRanch Style Guide.
subject: problem with packages and classpath
It's not a secret anymore!