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 javaand then select a openjava 1.6
they all works !
but as I have to use jdk1.7,so I select the first one .

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

被折叠的 条评论
为什么被折叠?



