Eclipse Luna在Ubuntu上的新项目崩溃 [英] Eclipse Luna crashes on new project in Ubuntu

查看:182
本文介绍了Eclipse Luna在Ubuntu上的新项目崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些麻烦让Eclipse月亮工作。我从eclipse网站下载了tar.gz,我下载了用于Java JDK的tar.gz。我提取的一切,Eclipse打开正确,但当我试图做一个新的项目,它崩溃了我。在终端中我运行 java -version ,它告诉我我有版本1.8.0_25,所以我不认为我有一个问题与java。现在,如果我尝试做任何类型的项目,这种情况发生。 Eclipse打开用于创建特定类型的新项目的向导,然后整个应用程序崩溃。当我开始这样做,我安装在KDE桌面下。当Eclipse崩溃时,我收到消息 java:/build/buildd/gtk2-engines-oxygen-1.4.5/src/animations/oxygencomboboxdata.cpp:87:void Oxygen :: ComboBoxData :: setButton (GtkWidget *):Assertion'!_button._widget'failed 。所以,我决定安装xfce桌面来绕过它,因为氧是一个KDE主题。我卸载eclipse并重新安装它在xfce下,我有相同的行为和相同的错误。当我从命令行运行eclipse,我在启动时得到这个异常:

  java.lang.ClassCastException:org.eclipse。 osgi.internal.framework.EquinoxConfiguration $ 1不能转换为org.eclipse.m2e.logback.configuration.LogHelper.logJavaProperties(LogHelper.java:26)
在org.eclipse的
.m2e.logback.configuration.LogPlugin.loadConfiguration(LogPlugin.java:189)
at org.eclipse.m2e.logback.configuration.LogPlugin.configureLogback(LogPlugin.java:144)
at org.eclipse .m2e.logback.configuration.LogPlugin.access $ 2(LogPlugin.java:107)
at org.eclipse.m2e.logback.configuration.LogPlugin $ 1.run(LogPlugin.java:62)
在java .util.TimerThread.mainLoop(Timer.java:555)
在java.util.TimerThread.run(Timer.java:505)

解决方案

是否有任何想法? 20在此错误报告中: https://bugs.eclipse.org/bugs/show_bug.cgi? id = 440660#c20


这似乎是GTK根据
的错误https://bugs.launchpad.net/ubuntu/+source/gtk2-engines-oxygen/+bug / 1242801
(有一个类似的问题为Meld报告)。



另一个解决方法提到有Oxygen,编辑正常已经存在的文件
/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc 并更改

 `GtkComboBox :: appear-as-list = 1`

 `GtkComboBox :: appear-as-list = 0`
pre>

这种解决方法适用于我。



I'm having some trouble getting Eclipse Luna to work. I downloaded the tar.gz from the eclipse site and I downloaded the tar.gz for the Java JDK. I extracted everything and Eclipse opens properly, but when I try to make a new project, it crashes on me. In the terminal I ran java -version and it tells me I have version 1.8.0_25 so I don't think I have an issue with java. Now, this happens if I try to make any kind of project. Eclipse opens the wizard for creating a new project of a particular type and then the whole application crashes. When I started doing this, I installed it under the KDE desktop. When Eclipse crashes, I get the message java: /build/buildd/gtk2-engines-oxygen-1.4.5/src/animations/oxygencomboboxdata.cpp:87‌​: void Oxygen::ComboBoxData::setButton(GtkWidget*): Assertion '!_button._widget' failed. So, I decided to install the xfce desktop to get around it, since oxygen is a KDE theme. I uninstalled eclipse and reinstalled it under xfce and I have the same behavior and the same errors. When I run eclipse from the command line, I get this exception on startup:

java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
at org.eclipse.m2e.logback.configuration.LogHelper.logJavaProperties(LogHelper.java:26)
at org.eclipse.m2e.logback.configuration.LogPlugin.loadConfiguration(LogPlugin.java:189)
at org.eclipse.m2e.logback.configuration.LogPlugin.configureLogback(LogPlugin.java:144)
at org.eclipse.m2e.logback.configuration.LogPlugin.access$2(LogPlugin.java:107)
at org.eclipse.m2e.logback.configuration.LogPlugin$1.run(LogPlugin.java:62)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

Does anyone have any ideas on what else to try?

解决方案

According to comment 20 in this bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=440660#c20

This seems to be a bug in GTK according to https://bugs.launchpad.net/ubuntu/+source/gtk2-engines-oxygen/+bug/1242801 (there a similar problem for Meld was reported).

Another workaround mentioned there is for Oxygen, edit the normally already existing file /usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc and change

`GtkComboBox::appears-as-list = 1`

into

`GtkComboBox::appears-as-list = 0`

This workaround is working for me.

这篇关于Eclipse Luna在Ubuntu上的新项目崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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