Eclipse Juno/Kepler 崩溃

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17948823/
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-19 20:59:11  来源:igfitidea点击:

Eclipse Juno/Kepler crashes

eclipse

提问by liquide

I've got problem with Eclipse. It crashes time by time (4-5 times a day), without any errors! (CPU usage is also normal), but I can't do anything - click or write in Eclipse, or close this application. Only kill "javaw" process in process manager helps. After restart, my workspace is corrupted and I have to configure some things again (custom perspectives and install other versions of JDK). It is very problematic.

我的 Eclipse 有问题。它一次次崩溃(一天 4-5 次),没有任何错误!(CPU使用率也正常),但是我什么也做不了——在Eclipse中点击或写入,或者关闭这个应用程序。只有在进程管理器中杀死“javaw”进程才有帮助。重新启动后,我的工作区已损坏,我必须再次配置一些东西(自定义透视图并安装其他版本的 JDK)。这是非常有问题的。

Any ideas? Some info I have found, refer to older versions of eclipse.

有任何想法吗?我发现的一些信息,请参考旧版本的 eclipse。

I've tried EE and standard version, Kepler and Juno, on Windows, without any plugins.

我已经在 Windows 上尝试过 EE 和标准版本,Kepler 和 Juno,没有任何插件。

采纳答案by liquide

I found solution: there isn't proper java version installed. My Eclipse was 64bit version, but there was only java 32-bit installed, so I install full pack: jre7 32bit, jre7 64bit, jre6 32bit and jre6 64bit. Now everything works properly.

我找到了解决方案:没有安装正确的 Java 版本。我的 Eclipse 是 64 位版本,但只安装了 java 32 位,所以我安装了完整包:jre7 32bit、jre7 64bit、jre6 32bit 和 jre6 64bit。现在一切正常。

回答by Amir

I add following line to eclipse.ini

我将以下行添加到 eclipse.ini

-Dorg.eclipse.swt.browser.DefaultType=mozilla

and this line to config.ini

这行到 config.ini

org.eclipse.swt.browser.DefaultType=mozilla

org.eclipse.swt.browser.DefaultType=mozilla

and my problem solved.

我的问题解决了。

回答by Paul Verest

1) If different Eclipse versions have the same problem, than it is problem of your PC configuration and not of Eclipse. Have you tried to do the same on other PC?

1) 如果不同的 Eclipse 版本有相同的问题,那是你的 PC 配置问题,而不是 Eclipse 的问题。您是否尝试过在其他 PC 上执行相同操作?

2) For your PC the problem may be old version of Java, e.g. Java 7 less than update 12.

2) 对于您的 PC,问题可能是旧版本的 Java,例如 Java 7 小于更新 12。

3) Maybe current user setting were corrupted, try to login as different user.

3) 可能当前用户设置已损坏,请尝试以其他用户身份登录。

4) Review /workspace/.metadata/.logfor analysis.

4) /workspace/.metadata/.log分析。

回答by Freak

Even I was facing the same problem. In my case I had installed jdk6, 7, and 8 at the same time. My eclipse was using jdk6, My Android studio was using jdk8.

甚至我也面临着同样的问题。就我而言,我同时安装了 jdk6、7 和 8。我的日食使用的是 jdk6,我的 Android 工作室使用的是 jdk8。

Solution : Uninstall all jdk,jre version and keep only one jdk-jre. I kept jdk6/jre6, this solved the issue

解决方法:卸载所有jdk、jre版本,只保留一个jdk-jre。我保留了 jdk6/jre6,这解决了问题