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
Here is how I got it working [1] on MacOS Catalina.
I had to set the -vm
path in my eclipse.ini
to:
/Users//.sdkman/candidates/java/current/lib/jli/libjli.dylib
Apparently Eclipse on MacOS always uses JNI invocation to load the VM [2] so I had to make it point to the libjli.dylib
instead of the regular java executable.
Links:
[1] Thanks to: https://bugs.eclipse.org/bugs/show_bug.cgi?id=549813
[2] https://help.eclipse.org/2020-03/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Flauncher.html&cp%3D2_1_5_1