This is a similar issue to: Eclipse can't find jdk installed with sdkman
I am still facing the issue on Mac (macos-mojave
)
Both of my
If the Eclipse launcher cannot find a suitable JVM to run on (which I am assuming is the problem here), you can usually work around this by pointing the 'eclipse.ini' (or 'STS.ini' as the case may be) to the JVM of your choice.
To do this, open the .ini
file in a text editor and add two lines at the front of the file. Something like this:
-vm
/usr/lib/jvm/jdk-1.8.0/bin/java
... the rest of the file unchanged...
Note it is important that:
1) these lines are the very first in the file
2) they are on two separate lines (don't try to put both -vm
and path of the jvm executable on a single line, it doesn't work).