How do I run Eclipse using Oracle's new 1.7 JDK for the Mac?

前端 未结 15 2191
执笔经年
执笔经年 2020-11-28 22:47

I\'m trying to get the new 1.7 JDK working with Eclipse (this is Oracle\'s official release).

I don\'t mean just pointing Eclipse to it so you can use it in projects

15条回答
  •  执笔经年
    2020-11-28 23:29

    Assuming you are using a version of Eclipse which supports Java 7 (I believe anything 3.7 and above) you should be able to specify the JVM used by Eclipse in the eclipse.ini file. If you open it up, you should see a "-vm" property followed by the directory of the JVM you're currently using. You should be able to just change this directory to your 1.7 installation.

    Note: I've not used Eclipse on Mac, so the name of the configuration file may be different.

提交回复
热议问题