【发布时间】:2017-12-10 20:53:26
【问题描述】:
我使用 Ubuntu 17.10 和
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
自从我从 17.04 升级到 17.04 后,我无法启动 eclipse。它总是抛出异常:
!SESSION 2017-12-10 21:39:32.982
-----------------------------------------------
eclipse.buildId=4.6.3.M20170301-0400
java.version=1.8.0_151
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product
org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.osgi 4 0 2017-12-10 21:39:36.095
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:4559)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:958)
at org.eclipse.swt.widgets.Display.create(Display.java:942)
at org.eclipse.swt.graphics.Device.<init>(Device.java:174)
at org.eclipse.swt.widgets.Display.<init>(Display.java:562)
at org.eclipse.swt.widgets.Display.<init>(Display.java:553)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:795)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:160)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:168)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:111)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
我尝试使用现有的和新的 Eclipse Neon 和 Eclipse Oxygen。我也试过tip
--launcher.GTK_version
2
在 eclipse.ini 和
export SWT_GTK3=0
开始前在控制台中
./eclipse
我不知道我能做些什么来解决这个问题。
在较旧的 Ubuntu 版本上,GTK3=0 的技巧效果很好,但现在不行。你有什么想法吗?
【问题讨论】:
-
Ubuntu 对 Eclipse 团队来说并不容易。所以请确保Eclipse 比 Ubuntu 更新。
-
您能否将您的陈述翻译成真正的提示:(a) 等待,(b) 升级 Ubuntu,(C) 使用它,(D) 命名技术解决方案
-
(E) 将您的 Eclipse IDE 从 Neon.3 (4.6.3) 升级到 Oxygen.1a (4.7.1a)。 Eclipse 适应了 Ubuntu 的变化,但看不到未来。目前,您的 Ubuntu 17.10 比您的 Eclipse IDE 更新。