黑猴子的家: Eclipse 启动报 org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]

1、log

!SESSION 2014-10-24 10:24:10.240
eclipse.buildId=4.3.2.M20140221-1700
java.version=1.8.0_144
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=zh_CN
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.jee.product


!ENTRY org.eclipse.osgi 4 0 2014-10-24 10:24:10.240
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
        at org.eclipse.swt.SWT.error(SWT.java:4423)
        at org.eclipse.swt.widgets.Display.createDisplay(Display.java:925)
        at org.eclipse.swt.widgets.Display.create(Display.java:909)
        at org.eclipse.swt.graphics.Device.(Device.java:156)
        at org.eclipse.swt.widgets.Display.(Display.java:507)
        at org.eclipse.swt.widgets.Display.(Display.java:498)
        at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:695)
        at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
        at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
        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:636)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1450)

在XShell中,使用命令方式,打开eclipse软件,报上面的错误。
eclipse打开的默认方式,是图形化界面,所以在命令行中打开无法打开,进入图形界面,然后进入eclipse所在目录,即可成功打开了

你可能感兴趣的:(黑猴子的家: Eclipse 启动报 org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed])