eclipse错误java was started but returned exit code =-805306369

这个错误原因可能有很多,这只是一只可能的解决方法,如下:

主要原因是eclipse.ini配置文件错误了,配置文件中-vm参数设置错误,或者没有-vm这行,在windows7系统下需要使用 " / " 而不是 " \ "

原配置文件:

-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:\soft\Java\jdk1.6.0_25\bin\javaw.exe
--launcher.defaultAction
openFile

-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

修改后的配置文件:

-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:/soft/Java/jdk1.6.0_25/bin/javaw.exe
--launcher.defaultAction
openFile

-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

你可能感兴趣的:(eclipse,VM)