Incompatible JVM when trying to install Eclipse on Windows 10 PC

I am trying to run the installer for Eclipse 64-bit and I get an error message:

Version 1.7.0_10 of the JVM is not suitable for this product. Version: 1.8 or greater is required. 

When i run java -version on the command line, I get:

java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) Client VM (build 25.121-b13, mixed mode, sharing) 

Please help, i just want to get up and running with Eclipse. Thanks!

7 Answers

follow this steps

step1 : just go and find the location of eclipse in your system

step2 : open the "eclipse configuration file" and search "-vmargs" in this file just go one line above of "-vmargs" and hit enter for blank space now type here "-vm" and hit enter

step3 : go and copy the bin folder of jdk11 and paste it below the "-vm" then add this "\javaw.exe", see the demo below then save it and now run the eclipse ide

example in my case

-vm

C:\Program Files\Java\jdk-11.0.9\bin\javaw.exe

-vmargs

0

I had the problem with STS 4 on Windows 10 that needed JVM V11.

After JDK installation, you must add the bin path of the JDK in your PATH environment variable, in the first position, to ensure the system will use the right version.

Screenshot:

screenshot

1

check if there is a JAVA_HOME variable set. That might point to the Java7 installation and put the eclipse installer on the wrong track

4

You can also set the JAVA_HOME in the same cmd that you run the executable Eclipse installation File. Example:

set JAVA_HOME="C:\Program Files\Java\jdk1.8.0_171"
"C:\Users\XX\Downloads\eclipse-inst-win64.exe"

recently I got the same issue with STS. i have issued below command in cmd with admin rights: C:\WINDOWS\system32>set JAVA_HOME="C:\Program Files\Java\jdk-15.0.2\bin"

its resolved my problem. hope it will work for you.

2

Just as an FYI: Installing multiple JDKs/JREs led to Eclipse detecting the wrong one (jdk 8 instead of the required 11). Aside from setting JAVA_HOME I had to reorder the PATH variable, to have the 11 before the 8.

One solution if none of the others work: You have two types of system variables, user and the system. You need to remove all the paths (relative and absolute) that point to any version of java from the system variable part. Worked for me!

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like