Centos7安装Eclipse报错: Could not load SWT library以及No more handles [gtk_init_check() failed]
2017-04-14 10:33
661 查看
Centos7中安装eclipse报错:
查看1492090610671.log:
GTK是一个图形界面工具包,安装了gtk2、libgtk-x11-2.0.so.0之后又报错:
应该是自己没有桌面系统的原因,装了GNOME Desktop后一切正常,Eclipse能够正常启动,总之遇到任何错误都是根据错误信息一步步来。
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized. Eclipse: An error has occurred. See the log file /home/softwares/eclipse/configuration/1492090610671.log.
查看1492090610671.log:
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: /home/softwares/eclipse/configuration/org.eclipse.osgi/335/0/.cp/libswt-pi-gtk-4430.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory no swt-pi-gtk in java.library.path /root/.swt/lib/linux/x86_64/libswt-pi-gtk-4430.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory Can't load library: /root/.swt/lib/linux/x86_64/libswt-pi-gtk.so at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236) at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:39) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54) at org.eclipse.swt.widgets.Display.<clinit>(Display.java:135) at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:716) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162) at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:165) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:107) 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:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
GTK是一个图形界面工具包,安装了gtk2、libgtk-x11-2.0.so.0之后又报错:
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] at org.eclipse.swt.SWT.error(SWT.java:4467) at org.eclipse.swt.widgets.Display.createDisplay(Display.java:934) at org.eclipse.swt.widgets.Display.create(Display.java:918) at org.eclipse.swt.graphics.Device.<init>(Device.java:157) at org.eclipse.swt.widgets.Display.<init>(Display.java:514) at org.eclipse.swt.widgets.Display.<init>(Display.java:505) at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:732) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162) at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:165) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:107) 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:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
应该是自己没有桌面系统的原因,装了GNOME Desktop后一切正常,Eclipse能够正常启动,总之遇到任何错误都是根据错误信息一步步来。
相关文章推荐
- Ubuntu下安装eclipse的Could not load SWT library问题
- ubuntu下安装eclipse出现Could not load SWT library错误处理方式
- Ubuntu下安装eclipse的Could not load SWT library问题
- Ubuntu下安装eclipse后,打开报错 Could not load SWT library
- SWTError: No more handles [gtk_init_check() failed] running platform tests (on Linux)
- Centos 安装Eclipse报错java.lang.UnsatisfiedLinkError: Could not load SWT library
- MyEclipse安装aptana插件后出现 No more handles [Could not detect registered XULRunner to use]
- 【ubuntu安装eclipse 出现no swt-gtk-3740 in java.library.path no swt-gtk in java.library.path】
- 安装了Subclipse的Eclipse出现Failed to load JavaHL Library.
- 解决安装Eclipse报错:Failed to load the JNI shared Library (JDK)--x86,x64,32bit,64bit
- "Failed to load JavaHL Library" eclipse中安装svn插件 subclipse 出错 linux mint/ubuntu下
- java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons解决方法
- myeclipse启动错误:org.eclipse.swt.SWTError: No more handles
- 安装SVN后,每次启动myeclipse弹出“SubVersion Native Library Not Availbale”窗口。错误:Failed to load JavaHL Library.
- 使用 eclipse时,出现如下问题:org.eclipse.swt.SWTError: No more handles的解决办法
- 安装安卓->启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方法!
- hadoop安装lzo-出现Could not load native gpl library问题解决
- EclipseJEE安装SVN插件后提示Failed to load JavaHL Library的解决办法
- MAC OSX eclipse 安装svn插件 提示 Failed to load JavaHL Library
- 解决:安装java后eclipse依然提示failed to load the jni shared library