wood burning stoves
The moose likes Java in General and the fly likes Classes and Packages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Classes and Packages" Watch "Classes and Packages" New topic

Classes and Packages

nehal trivedi

Joined: Dec 05, 2002
Posts: 5
Hi !
I am working on a Project at school that someone else started.
I have multiple packages in the project. When I want to compile a class, It won't compile because of the CLASSPATH Errors.
the structure is...
-> Client
-> Server
-> Shared
How can I possibly compile the java code on the directory (package) "client" above ?
Thank you,
Mark Herschberg

Joined: Dec 04, 2000
Posts: 6037
This really belongs in the JiG Beginner forum.
In any case, you need to make sure the directories in which your source files are contained are listed in the classpath. One way to solve this is to put "." (current directory) into the classpath and the compile from the root directory.
[ April 10, 2003: Message edited by: Mark Herschberg ]
I agree. Here's the link: http://aspose.com/file-tools
subject: Classes and Packages
It's not a secret anymore!