Found the default version is 1.6, want to change to 1.8 after several practices
1, according to Baidu out of the results, the normal addition of operations:
Idea can specify a different version of the JDK for each project and requires the developer to manually configure the version of the JDK used by the project. The configuration method is as follows:
(1) Click File | Project Structure menu item, open Projectstructure dialog box;
(2) In the Left list box, select the SDKs list item and go to the SDK Configuration page;
(3) If there is no option in the Middle SDK list box, click the "+" sign to create a JDK list item;
(4) Select the JDK list item, and on the SDK ' JDK ' tab page, click the Browse button of the JDK Home path project to locate and save the JDK installation path. 、
Prompt for error message:
2, solve the idea, confirm the path of Java and the current version: can be set through System Preferences-"Java view
3, the discovery path is no problem, the search problem prompt: The selected directory is not a volid home for JDK
4, suspect that I did not install the JDK but only installed the JRE, through the terminal to confirm
/usr/libexec/java_home-v
found that only 1.6 of the JDK
5, download JDK1.8, install, again check, sure enough there is jdk1.8
6. Add by the first step
Under Mac OS, Intellij idea default JDK version modification