Maven报错Please ensure you are using JDK 1.4 or above and not a JRE解决方法
来源:互联网 发布:smartptt对讲软件下载 编辑:程序博客网 时间:2024/06/06 20:40
在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,选择刚才新建的默认环境
这样就解决问题了。
- 顶
- 1
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
- Git如何帮你查原因
- swagger2
- tomcat 设置并发连接数
- spring mvc web应用启动时执行特定处理
- Listview按键触发选择item改变文字
- Maven报错Please ensure you are using JDK 1.4 or above and not a JRE解决方法
- MFC显示图片
- 《软技能-代码之外的生存指南》-关于职业思考
- UploadDialog使用完整代码
- 利用Oracle DBMS_SCHEDULER调用shell脚本文件
- mysql的内连接、左外连接、右外连接、完全连接
- 网络编程(47)—— windows平台下的四种线程同步技术(一)
- 用echarts画有两条线(柱)的折线(柱状)图
- 复制Oracle数据库中文字符集AMERICAN_AMERICA.ZHS16GBK数据到目的库Oracle字符集AL32UTF8