Instalar Sun (Oracle) Java 6 JDK en Ubuntu 12.04
# Instalar sun-java6-jdk sobre ubuntu 12.04 usando Terminal
#----------------------------------------------------------------------------------------------------
sudo add-apt-repository ppa:flexiondotorg/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
sudo update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-7-oracle/jre/bin/java 1062 auto mode
* 1 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
2 /usr/lib/jvm/java-7-oracle/bin/java 1 manual mode
3 /usr/lib/jvm/java-7-oracle/jre/bin/java 1062 manual mode
Press enter to keep the current choice[*], or type selection number: 1
sudo update-alternatives --config javac
There are 2 choices for the alternative javac (providing /usr/bin/javac).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-7-oracle/bin/javac 1062 auto mode
1 /usr/lib/jvm/java-6-sun/bin/javac 63 manual mode
2 /usr/lib/jvm/java-7-oracle/bin/javac 1062 manual mode
Press enter to keep the current choice[*], or type selection number: 1
java -version
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) Server VM (build 20.5-b03, mixed mode)
References:
- Instalar Sun (Oracle) Java 6 JDK en Ubuntu 12.04 .
- Install Java JDK 6.0 update 31 on Ubuntu 12.04 LTS.
No hay comentarios:
Publicar un comentario