简体   繁体   English

Eclipse启动时出现“无法创建JVM”错误

[英]“Could not create the JVM” error at Eclipse startup

I've got error like this: 我有这样的错误:

JVM启动器

My eclipse.ini: 我的eclipse.ini:

-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_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

--launcher.defaultAction openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6

-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M
-vm C:\Program Files\Java\jdk1.7.0_45\bin\javaw.exe

how to fix this problem? 如何解决这个问题?

您可以改用这种方式开始食:

eclipse -vm <path to java>

In the eclipse.ini file change the following eclipse.ini file更改以下内容

--launcher.XXMaxPermSize
900m

from

--launcher.XXMaxPermSize
512m

Also check out this link and mostly this error comes due to the hardware issues like the RAM. 另外,请检查此链接 ,大多数错误是由于RAM等硬件问题引起的。

same thing happened with me when i updated my jre7 , what worked for me was updating the new path in windows environment variables, add a new system variable : 当我更新jre7时,我发生了同样的事情,对我有用的是更新Windows环境变量中的新路径,添加一个新的系统变量:

Variable Name: PATH 变量名称:PATH

Variable value: C:\\Program Files\\Java\\jdk1.7.0_51\\bin 变量值:C:\\ Program Files \\ Java \\ jdk1.7.0_51 \\ bin

hope this helps..:) 希望这可以帮助..:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM