1. sudo apt-get purge openjdk-\* 2. sudo mkdir -p /usr/local/java 3. sudo cp -r jdk-7u45-linux-x64.tar.gz /usr/local/java 4. cd /usr/local/java 5. sudo tar xvzf jdk-7u45-linux-x64.tar.gz 6. sudo gedit /etc/profile OR sudo nano /etc/profile 7. In the /etc/profile Type/Copy/Paste: JAVA_HOME=/usr/local/java/ jdk1.8.0_152 JRE_HOME=$JAVA_HOME/jre PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin export JAVA_HOME export JRE_HOME export PATH 8. sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_152/jre/bin/java" 1 9. sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_152/bin/java" 1 10. sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.8.0_152/jre/bin/javaws" 1 11. sudo update-alternatives --set java /usr/local/java/jdk1.8.0_152/jre/bin/java 12. sud...
A Blog by Shadab Shamsi discussing thoughts, ideas, tricks and facts related to Computers and Technologies.