【问题标题】:Eclipse for android on Debian LennyDebian Lenny 上的 Eclipse for android
【发布时间】:2010-01-05 08:37:23
【问题描述】:

在安装 java (apt-get install sun-java6-jre sun-java6-plugin sun-java6-jdk) 之后,我在 Debian Lenny 上安装了 Eclipse。

当我运行 Eclipse 时,在选择将用作工作区的文件夹时,我收到以下消息:

GCJ has been detected as the current Java virtual machine.
Use of GCJ is untested and unsupported.
Please consult the documentation for more

我只是忽略了这条消息并进入“帮助”->“软件更新”来安装 android 开发工具。当我添加“https://dl-ssl.google.com/android/eclipse/”来下载开发者工具时,我得到了一个错误(见下文)并且安装无法继续。 这是由于我上面收到的垃圾收集器消息吗?

以下是我在运行 eclipse 的控制台上遇到的错误:

lj:/home/luc# eclipse/eclipse
GC Warning: Out of Memory!  Returning NIL!
GC Warning: Out of Memory!  Returning NIL!
GC Warning: Out of Memory!  Returning NIL!
GC Warning: Out of Memory!  Returning NIL!
GC Warning: Out of Memory!  Returning NIL!
Error while logging event loop exception:
java.lang.OutOfMemoryError
<<No stacktrace available>>
Logging exception:
java.lang.OutOfMemoryError
<<No stacktrace available>>
GC Warning: Out of Memory!  Returning NIL!
....

非常感谢您的帮助, 卢克

【问题讨论】:

    标签: android eclipse debian


    【解决方案1】:

    这条消息是你的线索:

    GCJ has been detected as the current Java virtual machine.
    

    这意味着您的系统 Java 仍然是 GCJ 版本,而不是 Sun 版本。

    如果你不需要 GCJ 做其他事情,你可以移除这个包(apt-get removeapt-get purge)。不过,这可能会破坏其他依赖项。

    否则,使用update-alternatives 来配置哪个包提供您的javajavac 命令:

    update-alternatives --config java
    update-alternatives --config javac
    

    Source

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-12-20
      • 2023-04-05
      • 1970-01-01
      • 1970-01-01
      • 2011-05-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多