---
title: "Failed to create the Java Virtual Machine"
author: "catastiger"
date: "2012-05-18T10:56:22Z"
tags: []
categories: ["开源软件"]
slug: "failed-to-create-the-java-virtual-machine"
draft: false
lastmod: "2012-05-18T10:56:22Z"
id: 1534525
url: "https://catastiger.iteye.com/blog/1534525"
---

启动eclipse 报错Failed to create the Java Virtual Machine
解决办法：修改eclipse目录下eclipse.ini文件，
-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.5
-Xms40m
-Xmx512m

修改成下面：
-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
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

其实只是修改了
--launcher.XXMaxPermSize
256M
--launcher.XXMaxPermSize
256m
重新启动，OK了！