---
title: "Eclipse出现Failed to create the Java Virtual Machine和The Eclipse executable launch"
author: "deejay"
date: "2011-02-10T08:47:09Z"
tags: []
categories: ["编程语言"]
slug: "eclipse-failed-to-create-the-java-virtual-machine-the-eclipse-executable-launch"
draft: false
lastmod: "2011-02-10T08:47:09Z"
id: 902291
url: "https://deejay.iteye.com/blog/902291"
---

百度了一下，按照网上说法，将配置文件修改如下

-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

将其修改为如下内容，即可启动Eclipse  
\-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

 

=================================华丽的分割线=========================================

 

接着在运行，Eclipse提示：The Eclipse executable launcher was unable to locate its companion shared libray.

继续百度~，没有找到一个很好的方法。

观察了一下配置文件，发现所以然，我又将  
\-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

修改了一下改为：

-startup  
plugins/org.eclipse.equinox.launcher\_1.1.0.v20100507.jar  
\--launcher.library  
plugins/org.eclipse.equinox.launcher.win32.win32.x86\_1.1.1.R36x\_v20100810  
\-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  
\-Xmx256m

嗯，现在正常啦，看来还是配置文件的问题。