centos 安装eclipse报错java.lang.unsatisfiedlinkerror: could not load swt library -凯发k8官方网
凯发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.原因是缺少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的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇:
- 下一篇: