Aptana Studio 3作为插件无法启动

时间:2012-04-30 06:39:32

标签: aptana

我已经在Ubuntu 12.04上通过PPA安装了Eclipse 3.7.2,随后我点击了Add New Software和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)

2 个答案:

答案 0 :(得分: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

source

答案 1 :(得分:1)

以下是有关如何在Ubuntu 12.04 LTS(精确穿山甲)上安装Aptana Studio 3的完整指南。使用相同的解决方案会提到您遇到的相同错误。但对于想要进行全面安装的人来说可能会有所帮助。

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