I am trying to configure my system with Java program just to practice on the coding....when i compile a test.java program i am able to see the class file but i cant run the program ... I am getting the following error
Exception in thread "main" java.lang.NoCla ssDefFoundError : test
Caused by: java.lang.Class NotFoundExcepti on: test
at java.net.URLCla ssLoader$1.run( Unknown Source)
at java.security.A ccessController .doPrivileged(N ative Method)
at java.net.URLCla ssLoader.findCl ass(Unknown Source)
at java.lang.Class Loader.loadClas s(Unknown Source)
at sun.misc.Launch er$AppClassLoad er.loadClass(Un known Source)
at java.lang.Class Loader.loadClas s(Unknown Source)
at java.lang.Class Loader.loadClas sInternal(Unkno wn Source)
i know the path is not set right could anyone please help me with setting the path right...java resides in c drive as well as inside the program files which folder should i refer to while setting the path :(
Exception in thread "main" java.lang.NoCla ssDefFoundError : test
Caused by: java.lang.Class NotFoundExcepti on: test
at java.net.URLCla ssLoader$1.run( Unknown Source)
at java.security.A ccessController .doPrivileged(N ative Method)
at java.net.URLCla ssLoader.findCl ass(Unknown Source)
at java.lang.Class Loader.loadClas s(Unknown Source)
at sun.misc.Launch er$AppClassLoad er.loadClass(Un known Source)
at java.lang.Class Loader.loadClas s(Unknown Source)
at java.lang.Class Loader.loadClas sInternal(Unkno wn Source)
i know the path is not set right could anyone please help me with setting the path right...java resides in c drive as well as inside the program files which folder should i refer to while setting the path :(
Comment