mvn compile报错
问题:
使用Maven的mvn compile将Java类编译成.class文件,报错No Compiler is provided in this environment,prehaps you are running on a JRE rather than a JDK.
环境:
IDEA
Maven
解决:
1.CMD中调用mvn -v查看当前running地址是否指向JDK
2.如果不是检查系统环境变量中JAVA_HOME是否添加和设置成功
问题:
使用Maven的mvn compile将Java类编译成.class文件,报错No Compiler is provided in this environment,prehaps you are running on a JRE rather than a JDK.
环境:
IDEA
Maven
解决:
1.CMD中调用mvn -v查看当前running地址是否指向JDK
2.如果不是检查系统环境变量中JAVA_HOME是否添加和设置成功