ubuntu 12.04上反覆安裝不一樣版本的eclipse(安裝卸載),最後經過命令apt-get install eclipse安裝(此時安裝的eclipse爲3.7版本的),在usr/lib/eclipse中打開時不能正常啓動,報:linux
An error has occurred. See the log file
/home/jiapeng/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1347190787753.log.ubuntu
產生此問題緣由爲相關庫文件位置信息的丟失,新創建對應庫文件連接便可,eclipse
libswt-atk-gtk-3740.so -> /usr/lib/jni/libswt-atk-gtk-3740.so
libswt-awt-gtk-3740.so -> /usr/lib/jni/libswt-awt-gtk-3740.so
libswt-gtk-3740.so -> /usr/lib/jni/libswt-gtk-3740.so
libswt-pi-gtk-3740.so -> /usr/lib/jni/libswt-pi-gtk-3740.so
以上庫文件軟鏈接存放地址:
X86_64(64位):
~/.swt/lib/linux/x86_64
X86(32位):
~/.swt/lib/linux/x86測試
或者複製這四個文件到對應目錄也可。執行命令:
X86_64(64位):
#cp /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64
X86(32位):
#cp /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86
最後再打開eclipse,能夠正常啓動.spa
注:eclipse3.7須要對應pydev2.8.2版本才能在eclipse/window/preference中才顯示,通過我的測試,其它版本都不能夠。orm