hi ! I am using jdk 1.5 but I am not able to execute any of the program. Program gets compiled but when I try to run the program it gives :
Exception in thread "main" java.lang.NoClassDefFoundError: First
I also tried j2sdk1.4.1_01 but the problem remains the same.
Advertisements. Register and be a member of the community to get rid of them.
Popular Error Encountered: Some times you may encounter
an error during the execution of program.
Exception in thread “main” java.lang.NoClassDefFoundError:
filename
Solution
Go to control panel -> System -> Click on Advanced Tab then
on “Environments Variables”
Double click on classpath and specify this path —
.;c:\Progra~1\Java\jdk1.5.0\jre\lib\rt.jar;c:\prog ra~1\Java\jdk1
.5.0\lib\dt.jar
This is taken from Nitish Upreti's Book for Beginners.
Maybe It can help you...
Yes, You maybe be able to compile, but the class wont execute.
Has'nt it been said, "during execution"??
This does work, thanks to nitish_mythology (on this forum)