#mkdir ~/src
#cd ~/src
#git clone
#cd ~/src/oab-java6
#sudo ./oab-java.sh
Then when its finished, install java:
#sudo apt-get install sun-java6-plugin sun-java6-jre sun-java6-bin sun-java6-jdk
You can follow the installation process with:
#tail -f ~/src/oab-java6/oab-java.sh.log
修改当前使用的JDK版本:sudo update-alternatives --config java
===================================================================
#apt-get purge openjdk*
#apt-add-repository ppa:flexiondotorg/java
#apt-get update
#apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin
once@once-home:/store/oab-java6$
sudo update-alternatives --install /usr/bin/java java
/usr/lib/jvm/java-6-sun-1.6.0.43/bin/java 300
once@once-home:/store/oab-java6$
sudo update-alternatives --install /usr/bin/javac javac
/usr/lib/jvm/java-6-sun-1.6.0.43/bin/javac 300
once@once-home:/store/oab-java6$
sudo update-alternatives --install /usr/bin/javap javap
/usr/lib/jvm/java-6-sun-1.6.0.43/bin/javap 300
once@once-home:/store/oab-java6$
sudo update-alternatives --install /usr/bin/javah javah
/usr/lib/jvm/java-6-sun-1.6.0.43/bin/javah 300
once@once-home:/store/oab-java6$
sudo update-alternatives --install /usr/bin/jar jar
/usr/lib/jvm/java-6-sun-1.6.0.43/bin/jar 300
once@once-home:/store/oab-java6$ sudo update-alternatives --config java