How do I run IDEA IntelliJ on Mac OS X with JDK 7?

后端 未结 5 1242
情书的邮戳
情书的邮戳 2020-12-12 10:08

I use Mac OS X 10.8.2, and use JDK 7. Now I downloaded the latest version of IDEA IntelliJ, 11. But it doesn\'t seem to start without JDK 6. Is there any workaround?

5条回答
  •  孤街浪徒
    2020-12-12 11:02

    For those who still getting error message that Java 6 must be installed. There are two problems with that:

    1. Mac OS wants jdk 1.6 to be installed whenever application Info.plist file contains Java section
    2. Java launcher shipped with IntelliJ also wants jdk 1.6 badly

    All you need is:

    1. Replace original launcher (Contents/MacOS/idea) with shell script with explicit java invocation (parameters and classpath can be taken from Info.plist's Java section).
    2. Remove "Java" section from Info.plist

    Or you can use this https://github.com/wonder-mice/mac-java-launcher that automate things and I believe will work not only with IntelliJ.

提交回复
热议问题