eclipse提示failed to create JVM

网上搜索一番,提示修改eclipse.ini文件

一、修改

--launcher.XXMaxPermSize  128m

二、加入

-vm

C:\Program Files\Java\jre5\bin\javaw.exe

后证实加入vm参数后可正常启动
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_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
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jre5\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

你可能感兴趣的:(eclipse)