Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Distributions»Debian»How to Switch Between Multiple Java Versions on Debian

    How to Switch Between Multiple Java Versions on Debian

    By RahulSeptember 5, 20181 Min ReadUpdated:September 4, 2020

    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.

    Advertisement

    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.

    Debian 9 Java
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Setup DKIM (DomainKeys) with Postfix

    A Step-by-Step Guide to Installing OpenDKIM with Postfix on Ubuntu – Unleash the Power of DKIM!

    How to Set JAVA_HOME environment variable on macOS

    How to Set JAVA_HOME environment variable on macOS

    What is the Access Modifiers in Java

    What are the Access Modifiers in Java

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Error: EACCES: permission denied, scandir (Resolved)
    • How To Install Python 3.11 on Ubuntu 22.04 / 20.04
    • How to Install Python 3.11 on Amazon Linux 2
    • An Introduction to the “./configure” Command: Compiling Source Code in Linux
    • How to Install PHP 8.x on Pop!_OS
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.