I am not able to start eclipse on Windows 7. It was working fine yesterday. Here is the screenshot of error when I start eclipse:
Java versions from CMD
Why it gives different versions for java
and javac
?
My java home is set to Jdk 7 as below:
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_60
Note: I have jdk 8 installed on my machine but I have not set jdk 8 path.
This question has been asked couple of times but I am not able to resolve it on my machine so please do not mark it as duplicate.
In the environment variables check your path whether it is starts with C:\ProgramData\Oracle\Java\javapath
if yes then please remove it and try again
More than likely you've installed JDK 1.70_60
prior to installing JRE 1.8.0_51
.
This would mean that your compiler javac
is found within the JDK distribution (Java Development Kit) and your java
runtime is found within the more recently downloaded JRE (Java Runtime Environment). JRE does not contain the javac
(Java compiler).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With