[Java] [Java] How to switch from openjdk to oracle jdk

less than 1 minute read

/usr/lib/jvm


Insert the downloaded oracle jdk

environment path setting


export JAVA_HOME=Set this path to the path above

Java default settings


sudo update-alternatives --set java /usr/lib/jvm/jdk1.8.0_version/bin/java
java -version

Tags:

Updated: