Eclipse for Debian Lenny上的Eclipse

时间:2010-01-05 08:37:24

标签: android eclipse debian

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

当我运行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!
....

非常感谢你的帮助, LUC

1 个答案:

答案 0 :(得分:2)

此消息是您的线索:

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