Site icon NgDeveloper

Error: Could not find or load main class hello

Root cause:

The error is because of wrong classpath setting.

Solution:

classpath should be jre lib rather than jdk\jre\lib.

Example path: C:\Program Files\Java\jre7\lib

Note:

Dont set the jdk\jre\lib path C:\Program Files\Java\jdk1.7.0\jre\lib.

If you are going to set the throught the system properties, ensure the semicolon(;) given at the end. 

Thanks for reading this post………!!

Exit mobile version