No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 问题
来源:互联网 发布:淘宝汽车配件名字大全 编辑:程序博客网 时间:2024/06/08 11:02
maven编译项目时出错,提示信息如下:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project springside-core: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a 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 switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
解决方案:
- 下载java jdk,并安装java jdk。下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
在eclipse的菜单中,进入 Window > Preferences > Java > Installed JREs > Execution Environments,选择JavaSE-1.6, 在右侧选择jdk.
然后在maven菜单中使用 “update project ...”.
0 0
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 问题
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 问题
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 问题
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 问题
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 问题
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 问题
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- 宇宙APP简单的性能测试
- 音乐播放器源码
- java中的wait()方法和sleep()方法的区别是什么?| Java 基础
- short s1 =1; s1 = s1 + 1;有什么错? short s1 = 1; s1 += 1;有什么错;float型float f=3.4是否正确?
- 3--双向链表
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 问题
- android多媒体框架之流媒体具体流程篇1----base on jellybean(十一)
- 修改mongodb3.0副本集用户密码遇到的坑
- java大数据学习笔记(三) 集合框架
- springMVC ajax 提交数组到后台
- java中关键字volatile的作用
- Android动画之RotateAnimation使用
- 大端机和小端机
- JAVA新建文件