Under Mac OS, Intellij idea default JDK version modification

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.