---
title: "eclipse启动异常"
author: "cheneyph"
date: "2011-09-18T16:08:08Z"
tags: []
categories: ["编程语言"]
slug: "eclipse"
draft: false
lastmod: "2011-09-18T16:08:08Z"
id: 1174571
url: "https://cheneyph.iteye.com/blog/1174571"
---

1、eclipse启动异常jvm terminated.Exit code=-1错误的解决

解决方案：

打开安装目录下的eclipse.config配置文件，大致的内容如下，

-startup  
plugins/org.eclipse.equinox.launcher\_1.0.200.v20090520.jar  
\--launcher.library  
plugins/org.eclipse.equinox.launcher.win32.win32.x86\_1.0.200.v20090519  
\-product  
org.eclipse.epp.package.jee.product  
\--launcher.XXMaxPermSize  
256M  
\-showsplash  
org.eclipse.platform  
\--launcher.XXMaxPermSize  
256m  
\-vmargs  
\-Dosgi.requiredJavaVersion=1.5  
\-Xms40m  
\-Xmx512m

其中的“Xmx512m” 改成“Xmx256m”，OK搞定。