Apr 13, 2020

JAVA Installation in Linux Machine


JAVA Installation in Linux Machine

Steps:

  1. Download installation script
  2. Download the JDK
  3. Apply Execute permission for the script
  4. Run the Script.


First download the installation script from this link


$ wget https://archive.org/download/install-java/install-java.sh$ wget https://archive.org/download/jdk-8u221-linux-x64.tar/jdk-8u221-linux-x64.tar.gz$ sudo chmod +x install-java.sh$ sudo ./install-java.sh -f jdk-8u221-linux-x64.tar.gz



This script will do the magic for you...! 

For Uninstalling Java download the following script and run


$ wget https://archive.org/download/install-java/uninstall-java.sh $ sudo chmod +x uninstall-java.sh $ sudo ./uninstall-java.sh

Enjoy !.



If you are going to install JRE alone then you can download this


$wget https://archive.org/download/jdk-8u221-linux-x64.tar/jre-8u221-linux-x64.tar.gz



* Tips:
For Windows JAVA Environment Variable Setup follow this link:
https://stackoverflow.com/questions/1672281/environment-variables-for-java-installation

* Shell script Credits
https://github.com/chrishantha/install-java






No comments:

Post a Comment