Use update-alternatives command to set default Java version as following:
According to the above screenshot, Java 10 is now set as default Java version on your system. You can use java -version command to view default version.
Use update-alternatives command to set default Java version as following:
According to the above screenshot, Java 10 is now set as default Java version on your system. You can use java -version command to view default version.