ubuntu eclipse

本文介绍了解决使用Eclipse时遇到的SWT库加载错误的方法,包括通过链接软链接和更改默认Java版本来解决问题。

first my default java : java1.7.0

my ubuntu 12.04LTS

but when I open the eclipse, I get a link error like this:

java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
no swt-gtk-3740 in java.library.path
no swt-gtk in java.library.path

there are a few ways to solve this problem:

1:

ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/

2

sudo update-alternatives --config java

and then select a openjava 1.6

they all works !


but  as I have to use jdk1.7,so I select the first one .

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值