簡體   English   中英

如何在Ubuntu 17.10下啟動Eclipse Neon / Oxygen?

[英]How can I start Eclipse Neon/Oxygen under Ubuntu 17.10?

我將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進行了嘗試。 我也嘗試過小費

--launcher.GTK_version
2

在eclipse.ini和

export SWT_GTK3=0

在開始之前在控制台中

./eclipse

我不知道該如何解決。

在較舊的Ubuntu版本上,使用GTK3 = 0的技巧效果很好,但現在不行。 你有什么主意嗎

我糾正自己。 我已經在Ubuntu 17.10下嘗試使用Oxygen.1a。

我找到了一個原因,但不是很了解。 當我從控制台以“ root”身份啟動Eclipse時,會出現“僅”問題。 如果我不使用sudo啟動eclipse,那么一切正常,並且eclipse不會崩潰。

由於這種組合(Ubuntu 17.10,Eclipse Neon / Oxygen),我沒有這個問題。 因為我將一個復雜的Web應用程序與tomcat-webserver一起使用,該應用程序已部署並從Eclipse開始,所以更容易以root身份進行開發中的所有操作。

所以我需要改變自己的行為以使一切正常運行。

因此,本主題已解決。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM