Reputation: 163
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!
Upvotes: 16
Views: 89491
Reputation: 651
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 append 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
Upvotes: 47
Reputation: 1
I was facing similar issue, with using java 17.
I changed the environment variable path to
jdk17\bin\javaw.exe
eg:
C:\Program Files\Java\jdk-17.0.3.1\bin\javaw.exe
after this it worked fine for me
Upvotes: 0
Reputation: 61
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!
Upvotes: 0
Reputation: 3
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.
Upvotes: 0
Reputation: 13
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.
Upvotes: 0
Reputation: 141
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:
Upvotes: 14
Reputation: 1
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"
Upvotes: 0
Reputation: 686
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
Upvotes: 7