Eclipse-based IDE, LPCXpresso, doesn't launch because of SWT library not loaded

走远了吗. 提交于 2019-12-13 05:19:21

问题


I'm having trouble with LPCXpresso IDE. I'm unable to launch it.

Here is a part of the log file :

java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: /home/fouge/.eclipse/org.eclipse.platform_4.2.0_470841845/configuration/org.eclipse.osgi/bundles/213/1/.cp/libswt-pi-gtk-4236.so: libgtk-x11-2.0.so.0: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type

I found help saying I need to make a symbolic link :

ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/  # for 32-bit OS
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/ # for 64-bit OS

Like said on this post : Eclipse cannot load SWT libraries

But the problem is I don't have /usr/lib/jni directory ! I'm running Ubuntu 13.10

The question should be where are SWT library files ?


回答1:


Those instructions do not sound correct (or good). The versions of Eclipse, Java, and GTK+2 all have to be 32-bit or 64-bit together. If you have a mismatch, resolve the mismatch.

Where was this help found?



来源:https://stackoverflow.com/questions/21069412/eclipse-based-ide-lpcxpresso-doesnt-launch-because-of-swt-library-not-loaded

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!