Skip to content

Latest commit

 

History

History
59 lines (50 loc) · 1.32 KB

install_java_on_linux_manually.md

File metadata and controls

59 lines (50 loc) · 1.32 KB

Install Java(OpenJDK) on Linux Manually

  1. Download JDK
# this is OpenJDK 11 
wget https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz
tar xfz openjdk-11+28_linux-x64_bin.tar.gz 
  1. Set JAVA_HOME and PATH edit ~/.profile
JAVA_HOME="/home/vagrant/java/jdk-11/"
PATH=${JAVA_HOME}/bin:${PATH}
  1. check
$ java -version 
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)

$ javac -version
javac 11

Archived OpenJDK

#OpenJDK install Website

#download later than java 9
https://openjdk.java.net/install/

#download prior to java 8
http://jdk.java.net/java-se-ri/8

#download adopt OpenJDK8
https://adoptopenjdk.net/archive.html

Java 7

  • OpenJdk 7 (GNU LICENSE)
https://download.java.net/openjdk/jdk7u75/ri/openjdk-7u75-b13-linux-x64-18_dec_2014.tar.gz
  • Oracle JDK 7 (Oracle Binary Code License)
https://download.java.net/openjdk/jdk7u75/ri/jdk_ri-7u75-b13-linux-x64-18_dec_2014.tar.gz

Java 8

  • OpenJDK 8 (GNU LICENSE)
https://download.java.net/openjdk/jdk8u40/ri/openjdk-8u40-b25-linux-x64-10_feb_2015.tar.gz
  • Oracle JDK 8 (Oracle Binary Code License)
https://download.java.net/openjdk/jdk8u40/ri/jdk_ri-8u40-b25-linux-x64-10_feb_2015.tar.gz