Posts

Showing posts from July, 2017

Oracle Java Installation on Linux

Just Copy and Paste then Execute in terminal  Java Installation On Linux ************************************** # wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u141-b15/336fa29ff2bb4ef291e347e091f7f4a7/jdk-8u141-linux-x64.tar.gz # sudo mkdir /usr/java # sudo mv jdk-8u141-linux-x64.tar.gz /usr/java/ # cd /usr/java/ # sudo tar -xvf jdk-8u141-linux-x64.tar.gz # cd jdk1.8.0_141/ # sudo update-alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_141/bin/java 1100 # sudo update-alternatives --install /usr/bin/javac javac /usr/java/jdk1.8.0_141/bin/javac 1100 # sudo update-alternatives --display java # sudo update-alternatives --display javac # java -version # sudo vi /etc/profile.d/java.sh //Add the following lines #!/bin/bash JAVA_HOME=/usr/java/jdk1.8.0_25/ //Replace "jdk1.8.0_25" with y