2011/10/18

Ubuntu 安裝 Sun Java

### Ubuntu 10.10

http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html

### Ubuntu 11.10

```
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install sun-java6-plugin sun-java6-jre sun-java6-plugin sun-java6-jdk sun-java6-bin sun-java6-fonts
sudo update-alternatives --all # 選擇 default 使用 Sun Java
```

http://www.lffl.org/2011/10/ubuntu-1110-oneiric-rimosso-java-dai.html)
http://askubuntu.com/questions/52154/how-do-i-install-the-latest-version-of-sun-java-in-ubuntu-11-10

### Ubunto 12.04

```
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo update-java-alternatives -s java-7-oracle
```

http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
http://www.webupd8.org/2011/09/how-to-install-oracle-java-7-jdk-in.html

2 則留言:

  1. It helps me a lot:) thx for your share.

    回覆刪除
    回覆
    1. You are welcome :-)

      btw, what is your OS version ?
      I just wonder if it works in Ubuntu 12.04 ?

      刪除