Eclipse莫名其妙打不开了?!

或许不是莫名奇妙,可能在装hadoop的时候重装了一下java,然后eclipse就打不开了。打开的时候报错:

n error has occurred. See the log file /home/solohermex/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1337069840757.log.

然后我去找log文件,错误如下:


!SESSION 2012-05-15 16:25:54.852 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86

!ENTRY org.eclipse.osgi 4 0 2012-05-15 16:26:13.648
!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

 

解决办法:

32位系统:ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/
64位系统:ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/

posted @ 2013-04-27 22:58  orchid  阅读(608)  评论(0编辑  收藏  举报