1 Answer
- Newest
- Most votes
- Most comments
0
HI,I used this step install openjdk-11-0.16 version in amz 2
wget https://builds.openlogic.com/downloadJDK/openlogic-openjdk-jre/11.0.16+8/openlogic-openjdk-jre-11.0.16+8-linux-x64.tar.gz mv openlogic-openjdk-jre-11.0.16+8-linux-x64 /usr/jdk-11.0.16 # add this to your /etc/profile export JAVA_HOME=/usr/jdk-11.0.16 export PATH=$PATH:$JAVA_HOME/bin # then,you just source this env source /etc/profile # check the java version [root@ip-172-31-23-10 ~]# java -version openjdk version "11.0.16" 2022-07-19 OpenJDK Runtime Environment OpenLogic-OpenJDK (build 11.0.16+8-adhoc.root.jdk11u) OpenJDK 64-Bit Server VM OpenLogic-OpenJDK (build 11.0.16+8-adhoc.root.jdk11u, mixed mode)
I hope this can help you,hava a nice day!
answered a year ago
Relevant content
- asked a year ago
- asked 8 months ago
- asked 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago