/
[INSTALL] OpenJDK
Search
Notion
[INSTALL] OpenJDK
Download OpenJDK release (https://jdk.java.net/15/) with wget
mkdir /usr/lib/jvm/jdk-15.0.1/ tar xvf openjdk-15.0.1_linux-x64_bin.tar.gz -C /usr/lib/jvm/jdk-15.0.1/
Plain Text
Add to EOF vim /etc/profile:
export JAVA_HOME=/usr/lib/jvm/jdk-15.0.1/ export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
Plain Text
Run commands to make a new Java release the default one:
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-15.0.1/bin/java" 1 update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-15.0.1/bin/javac" 1
Plain Text
In case of multiple Java versions installed:
update-alternatives --config java update-alternatives --config javac
Plain Text