2010-01-05 87 views
1

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

当我运行Eclipse,我有以下消息时谈到selet将被用作工作区的文件夹:

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! 
.... 

非常感谢你的帮助, 吕克

回答

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

+0

谢谢,伟大工程! – Luc 2010-01-05 18:56:59