Skip to content

How to Switch Between Multiple Java Versions on Debian

Advertisement

This tutorial helps you to switch between multiple Java versions on Debian system. For example, you have installed multiple Java versions on your Debian Linux system. Now you want to switch to other Java version as default Java.

Use update-alternatives command to set default Java version as following command:

sudo update-alternatives --config java

According to the above screenshot, I have selection option 2 which will set Oracle Java 8 as default Java version on your system. You can use java -version command to view default version.

Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top