解决m2eclipse需要jdk的错误

每次启动都提示eclipse is running in a jre, but a jdk is required

解决方法:
在eclipse.ini中加入两行

-vm
C:/Progra~1/Java/jdk1.6.0_13/bin/javaw.exe

注意这应该加在--launcher之后-vmargs之前

附上完整的eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.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:/Progra~1/Java/jdk1.6.0_13/bin/javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms64m
-Xmx512m

 

你可能感兴趣的:(解决m2eclipse需要jdk的错误)