Intellij idea by default, the version of the JDK used is 1.6, and when the idea is first launched, if the JDK is not installed on the system, the system will automatically download the JDK installation file on the Apple website. If your system is already installed with jdk1.7 or higher, you will be asked to install the Apple website jdk1.6 when you first open idea. To eliminate the redundant JDK installation, the solution is as follows: Find IntelliJ idea 13 under/applications, right-click to show Package Contents->contents-> Info.plist, use a text editor or default Xcode to open the file and find the following code
<key>JVMVersion</key>
<string>1.6*</string>
Change <string>1.6*</string> to <string>1.7*</string> save.
At this point, the JDK used by idea is version 1.7 and above.
Finish
Under Mac OS, Intellij idea default JDK version modification