Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 573
MDHackbert Avatar asked Jan 24 '17 22:01

MDHackbert


People also ask

Which JVM does Eclipse use?

The latest release of Eclipse requires a 64-bit JVM, and does not support a 32-bit JVM. Current releases of Eclipse require Java 11 JRE/JDK or newer. A Java Development Kit (JDK) includes many useful extras for Java developers including the source code for the standard Java libraries.


2 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

like image 65
manish kumar sah Avatar answered Oct 10 '22 17:10

manish kumar sah


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

like image 20
CSR Avatar answered Oct 10 '22 15:10

CSR