eclipse启动时报JDK is required错误

安装m2eclipse插件后,eclipse启动时红色字体报错“Eclipse is running in a JRE, but a JDK is required”。解决方法需在eclipse.ini文件中增加-vm参数。

eclipse.ini文件:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-vm
C:\Java\jdk1.6.0_22\bin\javaw.exe
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m


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