2010-01-05 89 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