I have been writing simple java console programs since a long time. Now when I started workig in my dad's laptop , i am unable to execute the programs.
After successful compilation an error flashes---
Exception in thread "main" java.lang.noClassDefFounderror :file name
WHY IS THIS ERROR CAUSED ?? HOW TO TROUBLESHOOT IT??
Advertisements. Register and be a member of the community to get rid of them.
It means that your classpath is not set correctly. Make sure your JAVA_HOME is set up right before you run the tomcat or startup scripts. More links available at above site