how can i set the jdk in intellij 9 on mac

19,859

Solution 1

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

/System/Library/Frameworks/JavaVM.Framework/Versions/CurrentJDK/Home

Solution 2

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
Share:
19,859

Related videos on Youtube

Ali_IT
Author by

Ali_IT

here i am on the road again

Updated on July 18, 2020

Comments

  • Ali_IT
    Ali_IT over 3 years

    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 JDK in Configuration project". when i go there in the dependencie for module SDk there is No Project JDk. and when i click on new it is just JSDK, Intellij idea plugin SDK,Flex SDK,AIR SDK, Flexmojos SDk and Mobile SDK

    What can I do?

  • thed0ctor
    thed0ctor over 10 years
    Thanks man this helped me in Intellij Idea 12.1.3 with Java 7 x64.
  • webo80
    webo80 over 8 years
    Same here, intelliJ 14.1.3, Yosemite

Related