Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classes and Packages

 
nehal trivedi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6037
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic