在使用IDEA Terminal 执行mvn命令时报错:[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看发现未配置环境变量。
添加JAVA_HOME,路径为JDK所在目录。
应用后,重启IDEA,再执行相应命令时就成功了。
在使用IDEA Terminal 执行mvn命令时报错:[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看发现未配置环境变量。
添加JAVA_HOME,路径为JDK所在目录。
应用后,重启IDEA,再执行相应命令时就成功了。