---
title: "eclipse为何无法打开？JVM terminated. Exit code=1"
author: "抛出异常的爱"
date: "2006-08-24T07:53:00Z"
tags: []
slug: "eclipse-jvm-terminated-exit-code-1"
draft: false
lastmod: "2006-08-24T07:53:00Z"
id: 29354
url: "https://loveexception.iteye.com/blog/29354"
---

![正确解答](http://maodajun327.spaces.live.com/i/forum/good_answer.gif) **此回复被接受为正确答案**

一开始eclipse可以运行，后来我改了J2EE的默认server，配为tomecat v5.0.28，第一次可以运行，后来因为其他问题，我停止了这个server，改了点东西又运行它（只是重新换了个rt.jar），就起不来了，我退出eclipse再进就报错：

JVM terminated. Exit code=1  
C:\\WINNT\\system32\\javaw.exe  
\-Xms40m  
\-Xmx256m  
\-jar E:\\eclipse-SDK-3.1.2-win32\\startup.jar  
\-os win32  
\-ws win32  
\-arch x86  
\-launcher E:\\eclipse-SDK-3.1.2-win32\\eclipse.exe  
\-name Eclipse  
\-showsplash 600  
\-exitdata ad0\_a0  
\-vm C:\\WINNT\\system32\\javaw.exe  
\-vmargs  
\-Xms40m  
\-Xmx256m  
\-jar E:\\eclipse-SDK-3.1.2-win32\\startup.jar

我在网上也查不到答案-\_-，请问有人能指点下，为什么会导致这个错误、怎么才能恢复呢？如果实在没办法我只能重新装了，不过既然有错误代码编号，觉得应该有文档可寻才是。  
盼指点！谢谢~\*^\_^*

 

找到原因了，把eclipse.ini文件改为：

-debug  
options  
\-vm  
D:\\SDK1.4.2\\jre\\bin\\javaw.exe  
\-Xms40m  
\-Xmx256m  
\-vmargs

终于运行了！

删除\\Eclipse\\configuration下除config以外的文件，重新启动