---
title: "解决Eclipse启动报错【Failed to create the Java Virtual Machine】"
author: "handly_eye"
date: "2017-09-27T17:06:30Z"
tags: []
categories: ["编程语言"]
slug: "eclipse-failed-to-create-the-java-virtual-machine"
draft: false
lastmod: "2017-09-27T17:05:06Z"
id: 2394726
url: "https://handly-eye.iteye.com/blog/2394726"
---

[启动eclipse报错 Could not create the Java Virtual Machine](http://blog.csdn.net/a15937822658/article/details/52050694)

![](http://dl2.iteye.com/upload/attachment/0127/1628/10086dd6-f4fa-3635-8b71-905fb7c8647f.jpg)  
   
![](http://dl2.iteye.com/upload/attachment/0127/1630/4005100c-b030-3f22-8ee5-2531fff46beb.jpg)  
 

网上查询了下，大多数说修改配置文件中的Xmx即可，但是我自己怎么试都不行。

后来看到另一种方法：删除C:\\Windows\\System32目录下的java.exe、javaw.exe、javaws.exe这三个文件。

 

启动adt-bundle-windows-x86-20140702\\eclipse\\eclipse.exe时，报错【Failed to create the Java Virtual Machine】。点确定后，Eclipse自动关闭

解决方法如下：

修改Eclipse目录下的配置文件【eclipse.iniadt-bundle-windows-x86-20140702\\eclipse\\eclipse.ini】

将下面两个值改为原来的0.5倍，然后保存，重新启动Eclipse就OK了

 

![](http://dl2.iteye.com/upload/attachment/0127/1626/03ac1e88-aca8-3e4e-9278-7f3372baca54.jpg)