Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up JDK 7 for IntelliJ on the Mac

I installed the JDK by downloading the dmg from the Oracle website here: http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html

After installation I tried to setup the JDK in IntelliJ but when I set the location to the JDK in the Project Structure->SDKs screen, only a few libraries were loaded and many (including all libraries from Content/Classes/) were missing.

How can I add all of the necessary libraries?

The install location for the JDK is /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home

I've tried looking in /System/Library/Frameworks/JavaVM.framework/Versions/ to no avail.

like image 721
Fergal Avatar asked Oct 25 '12 23:10

Fergal


1 Answers

Navigate to Project Structure -> Platform Settings/SDKs.

Hit the '+' sign and add /Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home

like image 89
bradrox Avatar answered Sep 29 '22 11:09

bradrox