Installer Java

De wiki gPod
Aller à : Navigation, rechercher

//supprimer les version d'openjdk sudo apt-get purge openjdk-\*

mkdir -p /usr/local/java

telecharger jdk-7u??-linux-x64.tar.gz et copier le dans /usr/local/java

cd /usr/local/java

chmod a+x jdk-7u??-linux-x64.tar.gz

tar xvzf jdk-7u??-linux-x64.tar.gz


update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.7.0_45/bin/java" 1

update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.7.0_45/bin/javac" 1

update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.7.0_45/bin/javaws" 1

update-alternatives --set java /usr/local/java/jdk1.7.0_45/bin/java

update-alternatives --set javac /usr/local/java/jdk1.7.0_45/bin/javac

update-alternatives --set javaws /usr/local/java/jdk1.7.0_45/bin/javaws

ln -s jdk1.7.0_45/ jdk

java -version : on doit voir

Java(TM) SE Runtime Environment (build 1.7.0_??-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)