Eclipse 错误 [Failed to create the Java Virtual Machine]

 

Eclipse 启动,发现弹出提示框“ Failed to create the Java Virtual Machine

解决方法有两种:

一、修改

--launcher.XXMaxPermSize   128m

二、现加入

-vm
d:/sun/java/jdk/bin/javaw.exe

 

三、双核CPU 加入

  -XX:+UseParallelGC 可以加快内存回收

 

 

-vm
d:/sun/java/jdk/bin/javaw.exe

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms128M
-Xmx1024M
-XX:PermSize=64M
-XX:MaxPermSize=128M
-XX:+UseParallelGC

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