Maven报错Please ensure you are using JDK 1.4 or above and not a JRE解决方法
来源:互联网 发布:sql server 分组排序 编辑:程序博客网 时间:2024/06/05 21:23
在eclipse下用maven编译时,可能报以下提示
Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required).
原因:eclipse默认是使用jre作为运行环境,而maven编译需要jdk作为运行环境
因此,我们只要设置为jdk即可。
具体步骤:
window -> preferences -> Java -> installed jres,点击add,新加一个环境,设为默认环境,注意location选择为你的jdk目录。
之后,在你的项目上右击,build path -> configure build path,编辑JRE System Library,选择刚才新建的默认环境
这样就解决问题了。
阅读全文
0 0
- Maven报错Please ensure you are using JDK 1.4 or above and not a JRE解决方法
- Maven报错Please ensure you are using JDK 1.4 or above and not a JRE解决方法
- Maven报错Please ensure you are using JDK 1.4 or above and not a JRE解决方法!
- Maven报错Please ensure you are using JDK 1.4 or above and not a JRE解决方法
- Maven经典错误之一:Please ensure you are using JDK 1.4 or above and not a JRE
- Maven经典错误之一:Please ensure you are using JDK 1.4 or above and not a JRE
- eclipse下maven打包失败(Please ensure you are using JDK 1.4 or above and not ......
- Maven打包异常Unable to locate the Javac Compiler in:Please ensure you are using JDK 1.4 or above and
- maven build工程报错 Perhaps you are running on a JRE rather than a JDK
- Android编译时报错:Ensure that you have installed a JDK(not just a JRE)and configured your JAVA_HOME......
- Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME
- maven项目打包war报错“Perhaps you are running on a JRE rather than a JDK”
- maven spring-boot 报Perhaps you are running on a JRE rather than a JDK?
- Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable
- Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable
- Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configur
- Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable
- Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable
- 论如何画好一条虚线
- 1秒30000QPS,前后端设计思路
- 通过live555实现H264 RTSP直播
- [Java]Java Socket选项解析
- FastDFS实战(三)- 配置和运行
- Maven报错Please ensure you are using JDK 1.4 or above and not a JRE解决方法
- ios 视图center的一个坑
- JS_正则表达式
- Java并发编程之Lock
- android setupwizard launcher app启动优先级(未验证)
- 神经网络入门
- H.264(H264)解码SPS获取分辨率和帧率
- POJ1251_简单的Prim的应用,使用的是优先队列prim
- Android APP测试流程