I shifted to a new PC in office a week ago and I have installed JDK1.6 in the PC. But today when I started Eclipse I get the exception that Eclipse wont run with JDK1.4. The funny thing is my CLASSPATH and PATH variables are all set in the Advanced Options. Even echo %CLASSPATH% returns the JDK1.6 path. But when I run the command java -version I get the JDK1.4.
Here's what is set in the PC:
Could you guys tell me how to solve this so that i can get the Eclipse running.
Joined: Mar 04, 2009
Oh.. I solved it. There was a PATH variable in the System Variables section which was referencing to the JRE which came with Oracle which was JDK1.4.2. Deleted the JRE entry and it works now.