View Single Post
  #3 (permalink)  
Old 07-27-2007, 12:17 PM
cruxblack cruxblack is offline
Senior Member
 
Join Date: Jul 2007
Posts: 130
cruxblack will become famous soon enough
No class definition found means that either ur bin directory haven't been put in the environment variable, u put the wrong input when u run it ex: java student, using lowercase, or missing classpath

Btw, one other possibilities are the access modifier, though, seen from ur code, seems like this isn't supposed to be the main class is it not?

If, just if, this is supposed to be a main class, the error might occur brcause u didn't put a public access for the class, default modifier, like the one ur using, are only usable in subclasses within the directory or outside right?

So, if u wanna run it from the outside, ex: cmd, it'll deny the request

Either u put the class public with a main method, or create another class that uses this class
Reply With Quote