edc
asked on
Exception in thread "main" java.lang.NoClassDefFoundError
Hello all,
This is a simple question, but one that makes me want to put my fist through my monitor. I've got an environment problem that I can not figure out. I've got the traditional "Hello World" program:
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); //Display the string.
}
}
It compiles fine, but when I try to run it I get:
Exception in thread "main" java.lang.NoClassDefFoundE rror: HelloWorldApp
The application sits in a directory called D:\jdk1.1.8\SOURCE. My classpath variable is set to CLASSPATH="D:\jdk1.1.8\SOU RCE;D:\jdk 1.1.8\lib;
I am stumped.
Thanks
This is a simple question, but one that makes me want to put my fist through my monitor. I've got an environment problem that I can not figure out. I've got the traditional "Hello World" program:
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); //Display the string.
}
}
It compiles fine, but when I try to run it I get:
Exception in thread "main" java.lang.NoClassDefFoundE
The application sits in a directory called D:\jdk1.1.8\SOURCE. My classpath variable is set to CLASSPATH="D:\jdk1.1.8\SOU
I am stumped.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER