S
SpeedRunner
Guest
I have recently installed new editions of both JDK and Textpad. My programs seem to compile fine, but when I try to run the programs it gives me a command prompt screen that says:
InnerClassTest is the name of the program, but I have tried multiple programs that I know for sure work. Again, it seems to compile fine but it will not run the programs.
I remember having this issue before and I forgot how to fix it. I believe I had to set either the PATH or CLASSPATH under System > Advanced > Environment Variables.
This is what I have PATH set as:
C:\Program Files\Java\jdk1.5.0_08\bin
This is what I have CLASSPATH set as:
C:\Program Files\Java\jre1.5.0_08\bin
Now unless I'm making a mistake, those both look right to me. I can't find any clear awnsers on what might be wrong, been searching the web for hours now.
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: InnerClassTest
Press any key to continue...
InnerClassTest is the name of the program, but I have tried multiple programs that I know for sure work. Again, it seems to compile fine but it will not run the programs.
I remember having this issue before and I forgot how to fix it. I believe I had to set either the PATH or CLASSPATH under System > Advanced > Environment Variables.
This is what I have PATH set as:
C:\Program Files\Java\jdk1.5.0_08\bin
This is what I have CLASSPATH set as:
C:\Program Files\Java\jre1.5.0_08\bin
Now unless I'm making a mistake, those both look right to me. I can't find any clear awnsers on what might be wrong, been searching the web for hours now.