Eclipse is running in a JRE, but a JDK is required错误的解决

Eclipse安装了Maven插件后,可能会报这种错误: “Eclipse is running in a JRE, but a JDK is required”

这是因为在Eclipse.ini配置中没有指定-vm参数,修改如下重启Eclipse问题就解决了:

eclipse.ini 写道
-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:\Program Files\Java\jdk1.6.0_10\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
 

你可能感兴趣的:(eclipse,jdk,maven,C++,c)