基于Eclipse的IDE,LPCXpresso,由于没有加载SWT库,不会启动 [英] Eclipse-based IDE, LPCXpresso, doesn't launch because of SWT library not loaded

查看:174
本文介绍了基于Eclipse的IDE,LPCXpresso,由于没有加载SWT库,不会启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在LPCXpresso IDE中遇到麻烦。我无法启动它。



这是日志文件的一部分:


java.lang.UnsatisfiedLinkError:无法加载SWT库。原因:
/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'objetpartagé:Aucun
fichier ou dossier de ce type


我发现帮助说我需要做一个象征性的链接:

  ln -s / usr /用于32位操作系统的lib / jni / libswt- *〜/ .swt / lib / linux / x86 /#
ln -s / usr / lib / jni / libswt- *〜/ .swt / lib / linux / x86_64 /#为64位操作系统

喜欢在这篇文章上说:
Eclipse无法加载SWT库



但问题是我没有/ usr / lib / jni 目录!
我正在运行Ubuntu 13.10



问题应该是SWT库文件在哪里?

解决方案

这些说明听起来不正确(或不好)。 Eclipse,Java和GTK + 2的版本都必须是32位或64位。如果您有不匹配,请解决不匹配。



此帮助是在哪里找到的?


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 ?

解决方案

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?

这篇关于基于Eclipse的IDE,LPCXpresso,由于没有加载SWT库,不会启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆