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

前端 未结 3 2000
孤独总比滥情好
孤独总比滥情好 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:27

    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).

提交回复
热议问题