1 采用ssh无法运行eclipse, 错误如下:
Autolaunch error: X11 initialization failed. , 打开日志文件:
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
试了vncserver等技术,还是打不开,最后只好在linux的图形界面下编程吧。
http://blog.csdn.net/jasonxzy/article/details/7090247
2 在linux本机上输入eclipse命令也不行, 错误如下:
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/lzw/.swt/lib/linux/x86/libswt-gtk-3740.so
Can't load library: /home/lzw/.swt/lib/linux/x86/libswt-gtk.so
原因:.swt/lib/linux/x86/没有相关的文件, 运行:
cp /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86 即可