运行eclipse 出现java was started but returned exit code = 2

运行eclipse 出现java was started but returned exit code = 2

解决方法:
eclipse.ini 中加入
-vm
C:/p/Java/jdk1.6.0_25/bin/javaw.exe


-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
-vm
C:/p/Java/jdk1.6.0_25/bin/javaw.exe

--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx1024m

你可能感兴趣的:(eclipse)