Eclipse 突然关闭

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23602413/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 22:04:49  来源:igfitidea点击:

Eclipse keep closing suddenly

eclipsecrash

提问by user3579994

Recently I have lots of problems with eclipse, it keeps on crashing, closing abruptly, don't work well at all.

最近我的eclipse有很多问题,它一直崩溃,突然关闭,根本无法正常工作。

It happens too much, like in every 10 -15 minutes.

它发生的太多了,比如每 10 -15 分钟一次。

The CPU and RAM are 50% free when this happens.

发生这种情况时,CPU 和 RAM 有 50% 可用。

This is the eclipse.inifile:

这是eclipse.ini文件:

    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize

    --launcher.defaultAction
    openFile
    -vmargs
    -Xms40m
    -Xmx512m

What is the problem ? It's really bothering!

问题是什么 ?真的很烦!

采纳答案by ksraj98

add the line

添加行

-XX:-UseCompressedOops

to eclipse.ini

eclipse.ini

but if you are using this windows 7 then rather add

但如果你使用的是这个 Windows 7 然后添加

 -XX:+UseCompressedOops

Even try running ecipse as administrator. If this even works then try opening with java.exe instead of javaw.exe. I hope this will work!

甚至尝试以管理员身份运行 ecipse。如果这甚至有效,请尝试使用 java.exe 而不是 javaw.exe 打开。我希望这会奏效!

回答by jim

Create a new Workspace. Import your stuffs into it. That worked for me.

创建一个新的工作区。将您的东西导入其中。那对我有用。

回答by WannaLearn

First before you do ANYTHING check the log: Look at the workspace/.metadata/.log file. In my case it was just some error with a subversion update using subclipse.

首先在你做任何事情之前检查日志:查看 workspace/.metadata/.log 文件。在我的情况下,这只是使用 subclipse 进行 subversion 更新时出现的一些错误。

回答by Falco

On eclipse neon.

在日食霓虹灯上。

On a specific project.

在一个特定的项目上。

Last thing some days ago was install lombok.

几天前的最后一件事是安装 lombok。

For some days everythig was ok.

有几天一切都很好。

From yestarday same problem, eclipse crash after some seconds, after open.

从昨天同样的问题开始,Eclipse 在打开后几秒钟后崩溃。

Removed from eclipse.ini this line. -javaagent:D:\eclipse-neon\lombok.jar

从 eclipse.ini 中删除了这一行。-javaagent:D:\eclipse-neon\lombok.jar

Now eclipse restarted to work

现在 eclipse 重新开始工作

回答by jyoonPro

Navigate to a hidden directory in your Eclipse Workspace named .metadata, delete it, and start eclipse. Files in the .metadata directory seem to cause recurrent problems once Eclipse begins to crash.

导航到 Eclipse 工作区中名为 .metadata 的隐藏目录,将其删除,然后启动 eclipse。一旦 Eclipse 开始崩溃,.metadata 目录中的文件似乎会导致反复出现的问题。