問題描述
我在讓 Eclipse Luna 工作時遇到了一些問題.我從 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*): 斷言 '!_button._widget' 失敗
.所以,我決定安裝 xfce 桌面來解決它,因為氧氣是 KDE 主題.我卸載了 eclipse 并在 xfce 下重新安裝了它,我有同樣的行為和同樣的錯誤.當我從命令行運行 eclipse 時,我在啟動時得到這個異常:
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?
推薦答案
根據此錯誤報告中的評論 20:https://bugs.eclipse.org/bugs/show_bug.cgi?id=440660#c20
According to comment 20 in this bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=440660#c20
這似乎是 GTK 中的一個錯誤,根據https://bugs.launchpad.net/ubuntu/+來源/gtk2-engines-oxygen/+bug/1242801(報告了 Meld 的類似問題).
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).
提到的另一個解決方法是氧氣,編輯通常已經存在的文件/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc
并更改
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`
進入
`GtkComboBox::appears-as-list = 0`
這個解決方法對我有用.
This workaround is working for me.
這篇關于Eclipse Luna 在 Ubuntu 的新項目上崩潰的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!