Issue
I recently installed Eclipse 2020-09-R. If I try to launch, it displays the following error:
Thing is - I have jdk 11.0.8 installed, and I even have my JAVA_HOME set to the jdk-11.0.8 folder. Further if I do a 'java -version' it says I am running java version "11.0.8"
It is true I also have jdk1.8.0_281 installed, which I need to run another app.
Also, I can make Eclipse 2020-09-R launch if I re-name my jdk1.8.0_281 to something like jdk1.8.0_281xx - but I'm pretty sure that's not how it's supposed to work.
I can't find anywhere in my eclipse.ini file or anywhere else where jdk1.8.0_281 is hard-coded.
Any suggestions? Thanks!
My eclipse.ini file..
Solution
The eclipse.ini is exactly where you specify what VM to run Eclipse with. You specify the path to the VM to use with an option like this:
-vm
<Path to "bin" directory of JDK>
This should be before any "-vmargs" line.
Answered By - David M. Karr
Answer Checked By - Timothy Miller (JavaFixing Admin)