Java WIN10 Configuring environment variables for JDK, Project SDK is not defined error

Source: Internet
Author: User

The environment variables that were set up after the system upgrade need to be reconfigured, and when the environment variables are configured in WIN10, it is a bit of trouble to configure the environment variables for the first time using the traditional configuration method.

Classpath for .; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

Java_home for C:\Program files\java\jdk1.8.0_60

Path is %java_home%\bin;%java_home%\jre\bin

Yunx java-version Prompt for command not found after configuration is complete

Through a series of troubleshooting found that Windows 10 does not seem to support%java_home% this writing, re-changed to C:\Program Files\java\jdk1.8.0_60\bin; C:\Program Files\java\jdk1.8.0_60\bin;

Then run java-version discovery to run correctly.

When running idea for the first time, idea will prompt you for the Project SDK is not defined error because the JDK was not imported into this project,

And then the error disappears.

Java WIN10 Configuring environment variables for JDK, Project SDK is not defined error

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.