欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

Maven构建项目出现No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

程序员文章站 2022-12-14 21:55:05
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 你应该指定一个JDK,而不是一个JRE。显示的JRE HOME,但是需要的是完整的JDK。 解决: Ecl ......

no compiler is provided in this environment. perhaps you are running on a jre rather than a jdk?

你应该指定一个jdk,而不是一个jre。显示的jre home,但是需要的是完整的jdk。

解决: eclipse-->window-->preferences-->java-->installed jres 选择目录, 找到jdk所在位置

Maven构建项目出现No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

以上解决了编译普通项目报错问题.

使用maven编译如果仍然出现问题, 那么可以重新配置maven环境.

eclipse-->window-->preferences-->maven-->user settings

Maven构建项目出现No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?