If you are finding issue somethig like this,then first of all just go to your command prompt under username and check java version there
by simply typing:-
java -version
If you can see java version there then simply checking below settings:-
JAVA Installation:
Installed JDK at C:\Program Files\Java\jdk1.7.0_10
Installed JRE at C:\Program Files\Java\jre7
Environment Variables Configuration:
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_10
PATH = C:\Program Files\Java\jdk1.7.0_10\bin;
But if you are unable to see java version there and some error like:-
“Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object”
Then just go to :-
C:\Program Files\Java\jdk1.7.0_10\jre\lib
and check that “rt.jar” is there.If this is not there then uninstall java from your machine and install java again.
Hope fully it will help someone.
keep coding………….