Eclipse安装了Maven插件后,可能会报这种错误: “Eclipse is running in a JRE, but a JDK is required”
这是因为在Eclipse.ini配置中没有指定-vm参数,修改如下重启Eclipse问题就解决了:
-vmD:\Program Files\Java\jdk1.6.0_35\bin\javaw.exe
我完整的eclipse.ini文件
-startupplugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502-productorg.eclipse.epp.package.jee.product--launcher.defaultActionopenFile--launcher.XXMaxPermSize256M -showsplashorg.eclipse.platform--launcher.XXMaxPermSize256m--launcher.defaultActionopenFile-vmD:\Program Files\Java\jdk1.6.0_35\bin\javaw.exe-vmargs-Dosgi.requiredJavaVersion=1.5-Xms40m-Xmx600m-XX:PermSize=128M -XX:MaxPermSize=800M