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