错误现象大概是这样的 !SESSION 2012-04-15 21:05:46.902 ----------------------------------------------- eclipse.buildId=I20110613-1736 java.version=1.7.0 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB Command-line arguments: -os linux -ws gtk -arch x86_64 !ENTRY org.eclipse.osgi 4 0 2012-04-15 21:05:47.885 !MESSAGE Application error !STACK 1 java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: no swt-gtk-3740 in java.library.path no swt-gtk in java.library.path Can‘t load library: /home/tom/.swt/lib/linux/x86_64/libswt-gtk-3740.so Can‘t load library: /home/tom/.swt/lib/linux/x86_64/libswt-gtk.so 解决: 参考: 最后用这个解决问题: echo "-Djava.library.path=/usr/lib/jni/" >> /etc/eclipse.ini
国内一些博客给出的解决方法不够号,这个stackoverflow给出的答案还是不错的,但我还是从simple的答案开始尝试。
时间: 2024-10-19 16:34:55