Java

[注意]

These instructions are for i386 and AMD64 computers only. For PowerPC machines, see the Ubuntu Java help page.

  1. Install sun-java5-jdk from the “Multiverse” repository (see 第 11 章 添加、删除和更新应用程序). You will need to use Synaptic Package Manager to install these packages.

  2. 请阅读Java许可文件。你必须接受该许可文件才能继续。

  3. 要在你的系统里用Sun Java来替代默认安装的、开源的(但功能稍逊)GIJ,请运行:

    sudo update-alternatives --config java

    ,并选择其中有j2re1.5-sun的选项。

Java 1.6也可以使用,并且可以按照以上说明来安装,只需把“1.5”替换为“1.6”便可。

Eclipse IDE for Java

Eclipse提供的是完整的、可扩展的Java开发环境。

  1. Install the eclipse package from the “Universe” repository (see 第 11 章 添加、删除和更新应用程序).

  2. 点击应用程序编写程序Eclipse IDE,从而开始使用Eclipse