Linux Ubuntu 安裝Java

摘要:Linux Ubuntu 安裝Java

 

【Install Java SDK】
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ferramroberto/java
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
 
觀看程式版本
java -version
 
 
【Install Java SDK 6.0  on Ubuntu 12.04】
 
http://www.gaggl.com/2012/04/installing-java6-jdk-on-ubuntu-12-04/
 
wget https://github.com/flexiondotorg/oab-java6/raw/0.2.1/oab-java6.sh -O oab-java6.sh
chmod +x oab-java6.sh
sudo ./oab-java6.sh
 
sudo apt-get purge sun-java
 
mkdir ~/src
cd ~/src
git clone https://github.com/flexiondotorg/oab-java6.git
cd ~/src/oab-java6
sudo ./oab-java.sh
 
sudo apt-get install sun-java6-plugin sun-java6-jre sun-java6-bin sun-java6-jdk
 
tail -f ~/src/oab-java6/oab-java.sh.log