2

我在 Ubuntu 12.04 上通过 PPA 安装了 Eclipse 3.7.2,随后我点击了添加新软件和指向 64Bit Aptana studio 3 的链接。

它找到了插件并正确安装了它。

现在,当我启动 Eclipse 时,我收到此错误:

An internal error has occurred.
No more handlesNative code library failed to load. (java.lang.UnsatisfiedLinkError: /home/xxx/.eclipse/org.eclipse.platform_3.7.0_155965261/plugins/com.aptana.swt.webkitbrowser.linux.x86_64_1.0.0.1295409059/os/linux/x86_64/libcefjni.so: libjpeg.so.62: cannot open shared object file: No such file or directory)

更新:

我想知道是不是因为我使用的是 Oracle 的 jdk 7 而不是 Sun jdk 6?这是Eclipse的日志文件

!SESSION 2012-04-30 07:48:06.985 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.7.0_04
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2012-04-30 07:48:07.951
!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
        Can't load library: /home/xxx/.swt/lib/linux/x86_64/libswt-gtk-3740.so
        Can't load library: /home/xxx/.swt/lib/linux/x86_64/libswt-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.C.<clinit>(C.java:21)
        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.<clinit>(Display.java:132)
        at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:695)
        at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
4

2 回答 2

5

我找到了解决方案:

libjpeg62是必需的,否则会出现 java.lang.UnsatisfiedLinkError。

如果使用 OpenJDK 试试这个:

sudo apt-get install openjdk-7-jdk libjpeg62 libwebkitgtk-1.0-0 git-core

如果使用 Oracle (sun) Java 试试这个:

sudo apt-get install libjpeg62 libwebkitgtk-1.0-0 git-core
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

资源

于 2012-05-12T22:29:47.633 回答
1

这是有关如何在 Ubuntu 12.04 LTS(Precise Pangolin)上安装 Aptana Studio 3 的完整指南。使用相同的解决方案提到了您遇到的相同错误。但可能对想要进行完整安装的人有所帮助。

http://www.samclarke.com/2012/04/how-to-install-aptana-studio-3-on-ubuntu-12-04-lts-precise-pangolin/

于 2012-05-29T08:29:27.063 回答