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

后端 未结 5 1202
情书的邮戳
情书的邮戳 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 10:55

    Others have suggested very good solutions but you have to do it manually vi editor etc. Instead you can run this command via your Mac Terminal and you will be good to go :

    find /Applications/IntelliJ*/*Contents/*Info.plist  -exec sed -i -e 's/string>1.6/string>1.7/' {} \;
    

    enter image description here

    Few optional tips:

    1. If you have JDK 1.8 installed then simply replace the 1.7 with 1.8 in above command.
    2. As always make a copy of your Info.plist in a folder just in case if you want to compare the result or revert it back for one reason or another.
    3. To verify that the change took place run this:

      • grep "string>1.7" /Applications/IntelliJ*/*Contents/*Info.plist

提交回复
热议问题