No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? ide
生活随笔
收集整理的這篇文章主要介紹了
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? ide
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
mvn clean install -X -Dmaven.test.skip=true -P dev 打包報錯:
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
idea,項目,maven 也設置了統一的jdk,還是報錯,
解決方法1:
在maven的setting.xml 文件 標簽中加入指定JDK的版本,
解決方法2:
在項目的pom.xml 文件加入maven插件,中加入jdk路徑
<plugin><artifactId>maven-compiler-plugin</artifactId><version>3.1</version><configuration><fork>true</fork><executable>C:\Program Files\Java\jdk1.8.0_202\bin\javac.exe(你的安裝路徑)</executable></configuration></plugin>總結
以上是生活随笔為你收集整理的No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? ide的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MyBatis-Plus_断言
- 下一篇: VSCODE远程连接服务器,远程开发。