Ubuntu10.04安装JDK5

The latest version of Ubuntu is Ubuntu 9.10 on 11/19/2009.
It looks pretty but for Android developer it gives a problem of installing JDK5.
Because @override doesn’t work in JDK 1.6 we need to find a way to insall previous version of JDK.
Here is a way I used to address this issue.
1. Run “Synaptic Package Manager”
System -> Synaptic Package manager
2. Run “Pepositories”
Ubuntu10.04安装JDK5
3. Select “Other Software” tab.
4. Add below two locations by “Add” button.
debhttp://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
Ubuntu10.04安装JDK5
Ubuntu10.04安装JDK5
5. Press “Reload” and Close “Synaptic Package Manager”
Ubuntu10.04安装JDK5
6. On terminal install JDK5

sudo apt-get install sun-java5-jdk

补充:
当下载完整之后 一直显示正在设定 sun-java5-bin“
并且始终停留在这个状态 如果关掉 就显示 不能更新了

Ubuntu10.04安装JDK5

有些人说

那个 ok 怎么用阿 好像点 又不能点 直接关掉又说没装好

其实很简单,直接按tab按回车