/usr/lib/jvm
Insert the downloaded oracle jdk
Environment path setting
export JAVA_HOME=Make the path here the upper path
Java default settings
sudo update-alternatives --set java /usr/lib/jvm/jdk1.8.0_version/bin/java
java -version
Recommended Posts