eclipse failed to create the java virtual

发生这个的背景:
昨天能启动,今天启动不了。php

发生的缘由:
系统内存不足,被其余软件吃的差很少了。java

解决方案:
如何惧怕复制如下内容会改变你的配置,本身手工修改内存值。256 改为128 512改为256eclipse

方法以下: 找到eclipse目录下的eclipse.ini,能够看到以下内容:ui

-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
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

将其修改成以下内容,便可启动Eclipsespa

-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
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx256m

首发地址:月小升博客 – http://java-er.com/blog/eclipse-failed-to-create-the-java-virtual/ code

相关文章
相关标签/搜索