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 missing classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "missing classes" Watch "missing classes" New topic

missing classes

Mark Robertson

Joined: Jan 10, 2006
Posts: 11
Hi everyone hope someone can help me. I am trying to run a java program with three classes. I have a main class and two other classes. However, when I run my main class, I get errors saying cannot find my other classes. I do not know how to link my classes. Anyone help? thanks
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Are they in the current directory? You can compile with

javac -classpath . ...

and interpret with

java -cp . MainClass
Steve Fahlbusch

Joined: Sep 18, 2000
Posts: 557


sorry, you have no class
Steve Fahlbusch

Joined: Sep 18, 2000
Posts: 557

sorry, it just came over me

try what keith said - if that doesn't work repost
I agree. Here's the link:
subject: missing classes
Similar Threads
Calling a variable form the main class
Multiple main classes in jnlp file?
copiles ok but is not running! HELP!!
Compiles but does not run! HELP!!!
Main class not recognized