Java help for a newbie
Posted on 2006-05-15
Please note that I know nothing about Java so may not be able to answer what may seem to you like a simple question.
I am getting this error:
Exception in thread "main" java.lang.NoClassDefFoundError
My directory is c:\inetpub\wwwroot\java_tests. All my classes and .java files are stored there.
Java Sun Server is stored on c:\Sun\AppServer.
In the cmd line, I have to compile from c:\Sun\AppServer\jdk\bin. Compiling works fine, but trying to run the program using the command java c:\inetpub\wwwroot\java_tests\MyProgram.class gives me the above error.
Please help, it is driving me nuts!!!