wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Classes and Packages" Watch "Classes and Packages" New topic
Author

Classes and Packages

nehal trivedi
Greenhorn

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...
Proj_Name
-> Client
-> Server
-> Shared
How can I possibly compile the java code on the directory (package) "client" above ?
Thank you,
Neh
Mark Herschberg
Sheriff

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.
--Mark
[ April 10, 2003: Message edited by: Mark Herschberg ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Classes and Packages
 
Similar Threads
package/directory stuff
How to compile packages?
how make petstore work in Jbuilder?
Eclipse workspace directory
Webservice return type