p*******y 发帖数: 133 | 1 hi.
i recently created a class called "Maze" with a public static void main(Stri
ng[] arg)
method. it takes two integers as argument
I am having problem running it.
I did it like this
java maze 8 8
then it says:
exception in thread "main" java.lang.NoClassDefFoundError:Maze
does sb know what happened?
the program runs well in other IDE.
thanks |
g*****g 发帖数: 34805 | 2
Maze
【在 p*******y 的大作中提到】 : hi. : i recently created a class called "Maze" with a public static void main(Stri : ng[] arg) : method. it takes two integers as argument : I am having problem running it. : I did it like this : java maze 8 8 : then it says: : exception in thread "main" java.lang.NoClassDefFoundError:Maze : does sb know what happened?
|
h*****n 发帖数: 439 | 3 A typical error in java beginner's course.
【在 g*****g 的大作中提到】 : : Maze
|
s*a 发帖数: 6 | 4 If you run "java Maze ..." under the dir you save the class file, then check
the classpath environment variable. Make sure that it includes "current dir"
【在 p*******y 的大作中提到】 : hi. : i recently created a class called "Maze" with a public static void main(Stri : ng[] arg) : method. it takes two integers as argument : I am having problem running it. : I did it like this : java maze 8 8 : then it says: : exception in thread "main" java.lang.NoClassDefFoundError:Maze : does sb know what happened?
|