-----2012.04.03 Update-------------------------------------------------------------
由於最近canonical remove all Sun JDK packages from the Partner archive.
所以只能透過PPA來install sun java 6
sudo apt-add-repository ppa:flexiondotorg/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
sudo update-java-alternatives -s java-6-sun
Reference:
-----Unavailable method----------------------------------------------------------------------------------
Ubuntu 10.04 LTS 預設的java是OpenJava且在APT上也找不到sun-java-sdk,
如果要用的話,就手動把sun-java-sdk的repository url加入sources.list
Step 1. 加入sun-java-sdk的repository
add-apt-repository "deb http://archive.canonical.com/ lucid partner"
Step 2. 更新apt的sources.list & install sun-java-sdk
apt-get update
Step 3. 切換成sun-jdk
apt-get install sun-java6-jdk sun-java6-plugin
update-java-alternatives -s java-6-sun
沒有留言:
張貼留言