Linux
Ubuntu 에 SunJDK(java-6-sun) 설치
뭉기
2012. 3. 2. 16:24
* #You need to do that if you want the mozilla plugin to work without conflict with java7 for instance.
sudo apt-get purge sun-javamkdir ~/src
cd ~/src
git clone https://github.com/flexiondotorg/oab-java6.git
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
You can follow the installation process with:tail -f ~/src/oab-java6/oab-java.sh.log
Note: If you do not need Java 6 it’s much safer to stick to the current Oracle Java 7release.
$ sudo update-alternatives --config java
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
Press enter to keep the current choice[*], or type selection number: 2
기본으로 쓸 자바를 어떤것을 선택할 것인지 지정해 주는 작업입니다. java-6-sun 을 골라주시면 되겠지요.
$ java -version
으로 검사해 보면 됩니다.