Multiple Java installations in Mac OS X Mavericks

前端 未结 2 1552
忘了有多久
忘了有多久 2020-12-09 10:36

I downloaded JDK for Mac OS X 10.9.1 from Oracle, but I had to install another Java from Apple site once more, as I couldn\'t launch eclipse with it.

These are two

相关标签:
2条回答
  • 2020-12-09 11:13

    Specify the JVM for Eclipse

    You can specify JDK version for usage with Eclipse in eclipse.ini. This will resolve problem with starting Eclipse.

    -vm
    /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/bin/java
    

    Warning: Add this configuration before -vmargs.

    Master your Java Environnement with jenv

    It is much easier to maintain multiple JDK versions with jenv.

    jenv is for a equivalent of rbenv, but for Java environnement. It allow to easily switch between several JDKs installations (already presents), and configure which one to use per project.

    Eclipse JDK

    • Setting JDK in Eclipse
    0 讨论(0)
  • 2020-12-09 11:39

    It seems like that the oracle JDK can be just removed. For eclipse, I could add Installation A as a default JRE from Java Build Path -> JRE System Library -> Installed JRES -> Add ...

    enter image description here

    0 讨论(0)
提交回复
热议问题