This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

missing classes

 
Mark Robertson
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are they in the current directory? You can compile with

javac -classpath . ...

and interpret with

java -cp . MainClass
 
Steve Fahlbusch
Bartender
Posts: 602
7
Mac OS X Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mark,

sorry, you have no class
 
Steve Fahlbusch
Bartender
Posts: 602
7
Mac OS X Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, it just came over me

try what keith said - if that doesn't work repost
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic