Eclipse无法创建Java虚拟机 [英] Eclipse Failed to create the Java Virtual Machine
问题描述
当我尝试打开eclipse时,会显示这条消息无法创建java虚拟机,VM初始化时发生错误,无法为对象堆预留足够的空间
这是我的eclipse.ini
-startup
plugins / org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins / org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion = 1.8
-Xms1336m
-Xmx1336m
-Declipse.buildId = v22。 3.0-887826
-XX:MaxPermSize = 512M
我试图更改在
512m
中,但仍然没有将不起作用。我试图重新启动,但没有。我试图更改 -XX:MaxPermSize = 512M
值,但没有。
打开 eclipse.ini
并更改以下变量。
对于 Dosgi.requiredJavaVersion = 1.8
,尝试将所需的Java版本更改为 1.6 。
与内存相关的默认值的Eclipse 3.4):
-
-Xms40m
-
-Xmx256m
-
-XX:MaxPermSize = 256m
li>
Android开发的推荐设置:
-
-Xms128m
-
-Xmx512m
-
-XX:MaxPermSize = 256m
如果一切都失败,删除或重命名 eclipse.ini
,让IDE处理所有内容。我强烈建议寻找一个目前的替换您的 eclipse.ini
,并阅读如何配置 eclipse.ini 进行Android开发。
I'm using eclipse to develop android application and it always gone well, but today it's giving problems.
When i try to open eclipse it show me this message "Failed to create the java virtual machine. Error occurred during initialization of VM. Could not reserve enough space for object heap"
This is my eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms1336m
-Xmx1336m
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M
I tried to change "256m"
in "512m"
but it still doesn't work. I tried to restart but nothing. I tried to change the -XX:MaxPermSize=512M
value, but nothing.
Open eclipse.ini
and change the following variables.
For -Dosgi.requiredJavaVersion=1.8
, try changing your required Java version to 1.6.
Memory-related defaults (as of Eclipse 3.4):
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
Recommended settings for Android development:
-Xms128m
-Xmx512m
-XX:MaxPermSize=256m
If everything else fails you can just delete or rename eclipse.ini
and let the IDE handle everything. I strongly suggest looking for a current replacement for your eclipse.ini
and reading up on how to configure the eclipse.ini for Android development.
这篇关于Eclipse无法创建Java虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!