android - Debian Lenny 上的安卓版 Eclipse

标签 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

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

以下是我在运行 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!
....

非常感谢您的帮助, 吕克

最佳答案

这条消息就是你的线索:

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

关于android - Debian Lenny 上的安卓版 Eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2004828/

相关文章:

java - 如何设置 JFace ListViewer 大小?

python解压二进制数据

php - CAKEPHP 帮助在 ubuntu 中运行项目

sql - PostgreSQL 查询到 Excel 工作表

android - 错误代码 2500 Facebook 图形 API

java - 从另一个类访问类私有(private)成员

android - 使用 mupdf 库的 Pdf 查看器

Eclipse 菜单在 Ubuntu-13.10 中失真

android - 读取 list 文件 : list <uses-library>

java - Eclipse 自动关闭