how can i set the jdk in intellij 9 on mac

前端 未结 2 584
北恋
北恋 2021-02-02 10:52

I have a project on intellij and now i wanna run it on intellinj 9 on mac. when i run the project i get the error -> \"the JDK is not specifiedfor module \"XXXXX\" specify the J

相关标签:
2条回答
  • 2021-02-02 11:39

    Refer to the documentation. You need to add new JSDK with the following path:

    /System/Library/Frameworks/JavaVM.Framework/Versions/CurrentJDK/Home
    
    0 讨论(0)
  • 2021-02-02 11:39

    Agreed. Going one step further, I would recommend setting up the different sdk's explicitly for Java 5, 6, etc.

    On OS 10.6, use:

    /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
    
    0 讨论(0)
提交回复
热议问题