欢迎访问 生活随笔!

凯发k8官方网

当前位置: 凯发k8官方网 > 运维知识 > centos >内容正文

centos

centos 安装eclipse报错java.lang.unsatisfiedlinkerror: could not load swt library -凯发k8官方网

发布时间:2024/10/8 centos 0 豆豆
凯发k8官方网 收集整理的这篇文章主要介绍了 centos 安装eclipse报错java.lang.unsatisfiedlinkerror: could not load swt library 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

在centos上安装eclipse时报错:

!entry org.eclipse.osgi 4 0 2017-08-15 00:22:12.612 !message application error !stack 1 java.lang.unsatisfiedlinkerror: could not load swt library. reasons: /home/badou/app/eclipse/configuration/org.eclipse.osgi/744/0/.cp/libswt-pi-gtk-4527.so: libgtk-x11-2.0.so.0: cannot open shared object file: no such file or directoryno swt-pi-gtk in java.library.pathcan't load library: /home/badou/.swt/lib/linux/x86/libswt-pi-gtk-4527.socan't load library: /home/badou/.swt/lib/linux/x86/libswt-pi-gtk.so/home/badou/.swt/lib/linux/x86/libswt-pi-gtk-4527.so: libgtk-x11-2.0.so.0: cannot open shared object file: no such file or directoryat 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.(os.java:38)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.(display.java:134)at org.eclipse.ui.internal.workbench.createdisplay(workbench.java:734)at org.eclipse.ui.platformui.createdisplay(platformui.java:162)at org.eclipse.ui.internal.ide.application.ideapplication.createdisplay(ideapplication.java:169)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: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:669)at org.eclipse.equinox.launcher.main.basicrun(main.java:608)at org.eclipse.equinox.launcher.main.run(main.java:1515)

原因是缺少swt library,在联网的情况下执行一下命令:

yum install gtk2.i686 gtk2-engines.i686 packagekit-gtk-module.i686 packagekit-gtk-module.x86_64 libcanberra-gtk2.x86_64 libcanberra-gtk2.i686

重启eclipse,就可以了

总结

以上是凯发k8官方网为你收集整理的centos 安装eclipse报错java.lang.unsatisfiedlinkerror: could not load swt library的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得凯发k8官方网网站内容还不错,欢迎将凯发k8官方网推荐给好友。

  • 上一篇:
  • 下一篇:
网站地图