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 .