---
title: "eclipse 启动不起来（不能创建VM）"
author: "fandayrockworld"
date: "2012-01-10T14:20:05Z"
tags: []
categories: ["编程语言"]
slug: "eclipse-vm"
draft: false
lastmod: "2012-01-10T14:26:38Z"
id: 1340110
url: "https://fandayrockworld.iteye.com/blog/1340110"
---

eclipse 3.7.0

 

在[这篇文章](http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Frunning_eclipse.htm)中，有以下描述：

 

```
Specifying the Java virtual machine
Here is a typical Eclipse command line: 

eclipse -vm c:\jdk1.4.2\jre\bin\javaw

Tip: It's generally a good idea to explicitly specify which Java VM to use when running Eclipse. This is achieved with the "-vm" command line argument as illustrated above. If you don't use "-vm", Eclipse will look on the O/S path. When you install other Java-based products, they may change your path and could result in a different Java VM being used when you next launch Eclipse.

To create a Windows shortcut to an installed Eclipse:

Navigate to eclipse.exe in Windows Explorer and use Create Shortcut on the content menu. 
Select the shortcut and edit its Properties. In the Target: field append the command line arguments. 
Opening this shortcut launches Eclipse. (You can drag the shortcut to the Windows Desktop if you want to keep it in easy reach.)
```

 

意思是指定自己的jvm，按照上面，在eclipse.ini的开头加上：

 

```
-vm
$JAVA_HOME\bin\javaw.exe // win下是"\"
```

 

或者将

 

 

```
--launcher.XXMaxPermSize
256M

--launcher.XXMaxPermSize
256m

// 改为

--launcher.XXMaxPermSize
128M

--launcher.XXMaxPermSize
128m
```