wood burning stoves*
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "missing classes" Watch "missing classes" New topic
Author

missing classes

Mark Robertson
Greenhorn

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
Bartender

Joined: Sep 18, 2000
Posts: 562
    
    7

mark,

sorry, you have no class
Steve Fahlbusch
Bartender

Joined: Sep 18, 2000
Posts: 562
    
    7

sorry, it just came over me

try what keith said - if that doesn't work repost
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: missing classes