【Java】安装Maven后,提示“Eclipse is running in a JRE, but a JDK is required”的解决方法
对于m2eclipse的插件,需要eclipse运行于jdk而不是jre, 打开eclipse,看到错误“Eclipse is running in a JRE, but a JDK is required”
解决方法:
在eclipse目录下eclipse.ini,添加如下两行,注意这行要加在-vmargs之前,
-vm
D:\Program Files\Java\jdk1.7.0_07\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.v20120522-1813
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
D:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe
-vmargs
-Xms40m
-Xmx512m