关于eclipse创建maven工后进行测试报[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?的解决办法:
报错信息如下:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.436 s
[INFO] Finished at: 2017-06-28T11:16:07+08:00
[INFO] Final Memory: 10M/151M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project manage: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]

解决方法:只需要将默认的jre改为自己电脑安装的jre即可:
右键点击项目名称—>build path–>configure build path
然后:
关于maven项报:[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rath
关于maven项报:[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rath

相关文章:

  • 2021-09-09
  • 2021-05-27
  • 2021-08-11
  • 2021-04-04
  • 2022-12-23
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2021-10-07
  • 2021-10-20
  • 2021-12-03
  • 2021-11-03
  • 2021-09-26
相关资源
相似解决方案