Multiple Java installations in Mac OS X Mavericks

前端 未结 2 1559
忘了有多久
忘了有多久 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

提交回复
热议问题