- 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
- Set JAVA_HOME and PATH edit ~/.profile
JAVA_HOME="/home/vagrant/java/jdk-11/"
PATH=${JAVA_HOME}/bin:${PATH}
- 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
#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
- 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
- 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