IntelliJ IDEA JDK configuration on Mac OS

后端 未结 4 1504
無奈伤痛
無奈伤痛 2020-11-28 18:39

I am using IntelliJ IDEA 10. Every time when I create a new project, it is asking me to choose JDK for this project. Anyone know how I can configure it and make it easy to u

4条回答
  •  無奈伤痛
    2020-11-28 19:21

    Just tried this recently and when trying to select the JDK... /System/Library/Java/JavaVirtualMachines/ appears as empty when opening&selecting through IntelliJ. Therefore i couldn't select the JDK...

    I've found that to workaround this, when the finder windows open (pressing [+] JDK) just use the shortcut Shift + CMD + G to specify the path. (/System/Library/Java/JavaVirtualMachines/1.6.0.jdk in my case)

    And voila, IntelliJ can find everything from that point on.

提交回复
热议问题