ubuntu eclipse

来源:互联网 发布:有货源如何开淘宝店铺 编辑:程序博客网 时间:2024/05/17 19:59

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 .

原创粉丝点击