ubuntu 12.04 eclipse no java_无法在Ubuntu中打开Eclipse 12.04 – java.lang.UnsatisfiedLinkError:无法加载SWT库...

在Ubuntu 12.04中,用户遇到了尝试运行Eclipse时遇到的问题。错误日志显示为`java.lang.UnsatisfiedLinkError`,原因是无法加载SWT库,特别是`libXtst.so.6`文件缺失。这可能是由于架构不匹配或缺少依赖项导致的。解决方案可能涉及安装缺失的库或确保使用与Eclipse兼容的Java版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我最近安装了Ubuntu 12.04.另外我安装了

Java 7.我尝试安装eclipse-java-indigo-SR2-linux-gtk.tar.gz.我在/ home / ramprabhu位置提取了这个文件.然后我尝试运行eclipse可执行文件.我看到日志文件时出错.

我的日志文件:

!SESSION 2012-06-10 22:47:35.959 -----------------------------------------------

eclipse.buildId=M20120208-0800

java.version=1.7.0_04

java.vendor=Oracle Corporation

BootLoader constants: OS=linux,ARCH=x86,WS=gtk,NL=en_US

Framework arguments: -product org.eclipse.epp.package.java.product

Command-line arguments: -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.osgi 4 0 2012-06-10 22:47:36.757

!MESSAGE Application error

!STACK 1

java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:

/home/ramprabhu/eclipse/configuration/org.eclipse.osgi/bundles/247/1/.cp/libswt-pi-gtk-3740.so: libXtst.so.6: cannot open shared object file: No such file or directory

no swt-pi-gtk in java.library.path

/home/ramprabhu/.swt/lib/linux/x86/libswt-pi-gtk-3740.so: /home/ramprabhu/.swt/lib/linux/x86/libswt-pi-gtk-3740.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)

Can't load library: /home/ramprabhu/.swt/lib/linux/x86/libswt-pi-gtk.so

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:285)

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:194)

at org.eclipse.swt.internal.gtk.OS.(OS.java:22)

at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)

at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)

at org.eclipse.swt.widgets.Display.(Display.java:132)

at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:695)

at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)

at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:153)

at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:95)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)

at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

我不能跑eclipse.如何解决这个问题并运行eclipse.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值