Ubuntu下Eclipse无法正常启动问题解决

首先保证Java环境配置正常。

启动eclipse,提示如下

root@exserver-5-8-6:~/eclipse# ./eclipse
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
Eclipse:
An error has occurred. See the log file
/root/eclipse/configuration/1438655757551.log.


查看错误日志文件,提示如下:


!ENTRY org.eclipse.osgi 4 0 2015-08-04 10:44:16.696
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
 /root/eclipse/configuration/org.eclipse.osgi/673/0/.cp/libswt-pi-gtk-4430.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
 no swt-pi-gtk in java.library.path
 /root/.swt/lib/linux/x86_64/libswt-pi-gtk-4430.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
 Can't load library: /root/.swt/lib/linux/x86_64/libswt-pi-gtk.so


解决方法:

To fix this, simple install the package ia32-libs-gtk

$ sudo apt-get install ia32-libs-gtk

Now run the application again and the error should go away.


  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值