Link to home
Start Free TrialLog in
Avatar of edc
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.NoClassDefFoundError: HelloWorldApp

The application sits in a directory called D:\jdk1.1.8\SOURCE.  My classpath variable is set to CLASSPATH="D:\jdk1.1.8\SOURCE;D:\jdk1.1.8\lib;

I am stumped.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of sen_kum
sen_kum

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of edc
edc

ASKER

That did the trick.  Thanks sen_kum.