• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no class found error

 
Karl Kolberg
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am getting a no class found error whenever I
try to execute my java programs after they compile
correctly. Does anyone have any advice on how
to fix the problem. Thanks in advance
-Karl Kolberg
 
Chris Hall
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds to me like the class file is not on your classpath.
You will need to set your classpath either by setting a system property CLASSPATH or by using the -cp option with java. Either will need to point to the directory containing the compiled class files. This directory would be the root of where you compiled the files if you are using packages.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic