Daily problem record: idea configures JDK. The selected directory is not a valid home for JDK

My JDK was originally configured, and the compressed file downloaded on the official website was directly decompressed and configured. It can be used in both eclipse and myeclipse, and recently changed to idea. When configuring jdk selection today, it prompted JDK.The selected directory is not a valid home for JDK. Baidu said that jdk was not installed successfully, but it can be used on other development tools.

The solution is to re-download the jdk.exe file, re-install, configure the environment variables, and then it's fine

I searched an article on the Internet saying that idea does not recognize your modified path https://www.cnblogs.com/techdream/p/6645251.html

F:\develop\jdk1.8.0_152 This is my original path. I don’t know if it’s because the reinstalled jdk is the default java\jdk1.8.0_152. You can try it if you have time

Guess you like

Origin blog.csdn.net/qq_28288835/article/details/89371861