为了账号安全,请及时绑定邮箱和手机立即绑定

No compiler is provided in this environment. Perhaps you are running on JRE rather than a JDK?

INFO] 1 error

INFO] -------------------------------------------------------------

INFO] ------------------------------------------------------------------------

INFO] BUILD FAILURE

INFO] ------------------------------------------------------------------------

INFO] Total time: 1.811 s

INFO] Finished at: 2019-01-02T14:01:38+08:00

INFO] Final Memory: 10M/108M

INFO] ------------------------------------------------------------------------

ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.

:compile (default-compile) on project maven01-model: Compilation failure

ERROR] No compiler is provided in this environment. Perhaps you are running on

 JRE rather than a JDK?

ERROR] -> [Help 1]

ERROR]

ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit

h.

ERROR] Re-run Maven using the -X switch to enable full debug logging.

ERROR]

ERROR] For more information about the errors and possible solutions, please rea

 the following articles:

ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc

ption


:\Maven\code\mven01>


正在回答

1 回答

选择jre时,要指定成jdk目录,因为jre目录少jar包,jdk目录中有

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
项目管理利器——maven
  • 参与学习       173090    人
  • 解答问题       742    个

使用maven来构建和管理Java项目,从环境配置,到maven核心知识

进入课程

No compiler is provided in this environment. Perhaps you are running on JRE rather than a JDK?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信