1:Ubuntu下安装Eclipse
sudo apt-get install eclipse
2:安装完成,也成功了,但是启动时报错,查看输出日志信息:
java.lang.UnsatisfiledLindErrot:Could not load SWT library
no swt-gtk-3740 in java.library.path
no swt-gtk in java.library.path
Can't load library: /home/kira/.swt/lib/linux/x86/libswt-gtk-3740.so
...
3:搜索网上的解决办法
32位
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/
64位
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/
4:重启eclipse