[root@servidor ~]# mkdir /usr/java [root@servidor ~]# tar -zxvf jdk-8u121-linux-x64.tar.gz --directory /usr/java
In order to set this JDK as default installation, you have to run the followings commands:
[root@servidor ~]# alternatives --install "/usr/bin/javac" "javac" "/usr/java/jdk1.8.0_121/bin/javac" 50 [root@servidor ~]# alternatives --install "/usr/bin/java" "java" "/usr/java/jdk1.8.0_121/bin/java" 50 [root@servidor ~]# alternatives --install "/usr/bin/javaws" "javaws" "/usr/java/jdk1.8.0_121/bin/javaws" 50 [root@servidor ~]# alternatives --install "/usr/bin/jar" "jar" "/usr/java/jdk1.8.0_121/bin/jar" 50
No hay comentarios:
Publicar un comentario