SDKMAN! does not work with Eclipse.app or SpringToolSuite4.app (on Mac)

前端 未结 3 1999
孤独总比滥情好
孤独总比滥情好 2021-02-19 04:39

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

         


        
3条回答
  •  名媛妹妹
    2021-02-19 05:09

    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

提交回复
热议问题