JAVA_HOME 应该指向 JDK 而不是 JRE
问题描述:
我正在尝试为我的项目设置 maven,但出现此错误
I am trying to set up maven for my project and I am getting this error
JAVA_HOME 应该指向 JDK 而不是 JRE"
"JAVA_HOME should point to a JDK not a JRE"
我知道已经有类似的问题,但没有用.如何在 Windows 中将 JAVA_HOME 指向 JDK.我正在使用 IntelliJ IDEA
I know there are already similar question but it did not work. How can I point JAVA_HOME to JDK in windows. I am using IntelliJ IDEA
答
控制面板->系统和安全->系统->高级系统设置->高级->环境变量->新建系统变量
Control Panel -> System and Security -> System -> Advanced system settings -> Advanced -> Environment Variables -> New System Variable