分类: LINUX
2012-12-28 13:30:27
sudo apt-get purge sun-java* #You need to do that if you want the mozilla plugin to work without conflict with java7 for instance.
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
===================================================================
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
点击(此处)折叠或打开
=============================================================
手动安装:
1, 根据自己机器的类型下载对应的安装包
2, mkdir /usr/lib/jvm/java
3, copy installed file jdk-6u43-linux-x64.bin to /usr/lib/jvm/java and chmod to executable
4, cd /usr/lib/jvm/java
./jdk-6u43-linux-x64.bin
5, add below to the end of /etc/profile