JVM终止退出代码= -1 [英] JVM terminated. Exit code = -1

查看:558
本文介绍了JVM终止退出代码= -1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Eclipse一段时间,我没有任何问题。但是,当我试图生成一些javadoc时,我发现我没有安装SDK。我安装了jdk 6u23,从那时起,Eclipse还没有工作。



起初它告诉我找不到JRE / SDK。复制并将JRE放入Eclipse文件夹后,错误更改为:





我搜索了一些解决方案,并发现了几种不同的性质。但是,他们似乎都没有工作。
我已经尝试清空我的eclipse.ini文件没有成功。
更改eclipse.ini中的某些值也不起作用。
安装Java SDK 1.5无效。



有没有人有其他可能的解决方案?



更新:我尝试重新安装Eclipse,但没有解决问题。我确实注意到它是一个32位版本,而我正在运行一个64位系统。但是,如果这是一个问题,我觉得很奇怪,这不是一个早期的问题。



更新2 再次重新安装Eclipse和Java,并且一切正常。

解决方案

从默认值256m / 256M eclipse配置文件(eclipse.ini)。



您将在--launcher.XXMaxPermSize下方找到此行。


I've been using Eclipse for some time already, and I didn't have any problems with it. However, when I tried to generate some javadoc, I found that I didn't have the SDK installed. I installed jdk 6u23, and from then on, Eclipse hasn't been working.

At first it told me it couldn't find a JRE/SDK. After copying and placing the JRE in the Eclipse folder, the error changed to this:

I've searched around for some solutions, and found a few of varying nature. However, none of them seemed to work. I've tried emptying my eclipse.ini file without success. Altering some values in eclipse.ini didn't work either. Installing Java SDK 1.5 didn't work.

Does anyone have other possible solutions?

Update: I tried reinstalling Eclipse, but it didn't fix the problem. I did notice that it's a 32bit version, while I'm running a 64bit system. However, if this were to be the problem, I find it strange that it hasn't been an issue earlier.

Update 2 I've reinstalled both Eclipse and Java once more, and everything works again.

解决方案

Remove the default value "256m/256M" from the eclipse configuration file (eclipse.ini).

You will find this line just below "--launcher.XXMaxPermSize".

这篇关于JVM终止退出代码= -1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆