Eclipse安装了Maven插件后,可能会报这种错误:
控制台出现:
1. Eclipse is running in a JRE, but a JDK is required
2. Some Maven plugins may not work when importing projects or updating source folders.
Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders.
这是因为在Eclipse.ini配置中没有指定-vm参数,修改如下重启Eclipse问题就解决了:
1. 检查Eclipse正在使用的JRE
‘Window’ -> ‘Preferences’ -> ‘Java’ -> ‘Installed JREs’ 确定正在使用JDK而非JRE.
2. 配置Eclipse.ini
加
-vm
C:\Program Files\Java\jdk1.7.0_15\bin\javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-----------------
-vm
C:\Program Files\Java\jdk1.7.0_15\bin\javaw.exe
-----------------
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m
注意位置
http://liguoliang.com/2010/eclipse-is-running-in-a-jre-but-a-jdk-is-required/
http://xucons.iteye.com/blog/475204
分享到:
相关推荐
maven-eclipse-plugin-2.5.1为eclipse中的maven插件,别下错了哦...
jeecg-3.5.1-eclipse-非maven版本jeecg-3.5.1-eclipse-非maven版本jeecg-3.5.1-eclipse-非maven版本jeecg-3.5.1-eclipse-非maven版本jeecg-3.5.1-eclipse-非maven版本jeecg-3.5.1-eclipse-非maven版本jeecg-3.5.1-...
打开并输入:path= D:/Development/eclipse-JavaEE/eclipse/plugins/maven(请参照上面对应你的 maven 插件) 4. 重启 eclipse,OK,完成了,启动后你打开Window ---> Preferences 会发现一个多了一个选项Maven...
ECLIPSE MAVEN3插件文件(eclipse-maven3-plugin工具)
eclipse-maven3-plugin插件 包含apache-maven-3.3.9和eclipse-maven3-plugin
maven是个项目管理工具,如果我们不告诉它我们的代码要使用什么样的jdk版本编译的话,它就会用maven-compiler-plugin默认的jdk版本来进行处理,这样就容易出现版本不匹配,以至于可能导致编译不通过的问题。...
maven-javadoc-plugin 插件 解决中文乱码 和注解 时间问题, 包括eclipse.ini设置、pom.xml设置、maven build GBK设置、eclipse注释设置、eclipse注释模版(可导入)。
maven-archetype-webapp-1.0.jar,下载,如果有需要的同志可以自己下载,。
maven-resources-plugin-2.4.1.jar
2) A directory called "apache-maven-3.x.y" will be created. 3) Add the bin directory to your PATH, eg: Unix-based operating systems (Linux, Solaris and Mac OS X) export PATH=/usr/local/apache-...
解决Unable to create project from archetype [org.apache.maven.archetypes:maven-archetype-quickstart:1.1] 1. 下载maven-archetype-quickstart-1.1.jar 文件地址: 2.cmd窗口执行mvn install:install-file -...
在apache-maven-3.5.2/conf/setting.xml中加入以下配置即可解决 alimaven aliyun maven http://maven.aliyun.com/nexus/content/repositories/central/ central junit junit Address/ ...
maven-eclipse-plugin-2.3.jar
Eclipse/sts启动时,The Maven Integration requires that Eclipse be running in a JDK
maven-eclipse-plugin-2.8.jar
maven-eclipse-plugin-2.2.jar
maven-eclipse-plugin-2.9.jar
apache-maven-3.5.2-bin.zip (maven的插件包,用于eclipse、myeclipse、IDEA) 配置参考博客:https://blog.csdn.net/chenchunlin526