$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

OpenJDK 23 Installation in Debian – Step-by-step

April 16, 2025 | By the+gnu+linux+evangelist.

How to Install

  1. 2. Downloading OpenJDK 23

    Download OpenJDK 23 GNU/Linux Package

    OpenJDK 23 tar.gz Linux/x64

    If you don’t see the Current Release, just access the Latest one and then on the Left Sidebar you should find it.

  2. 3. Installing OpenJDK 23

    Now to Install OpenJDK 23 for Debian
    Simply play:

    sudo tar xvzf ~/Downloads/openjdk-23*.tar.gz -C /usr/lib/jvm/

    But if yuo are in Trouble to Find it out on Terminal then See: How to Access Downloads Folder from Browser.

  3. 4. Setting Up Java

    Next to Set Up Oracle java OpenJDK 23
    You can directly Copy & Paste the Commands into Terminal..

    sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-23*/bin/java 1165
    sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-23*/bin/javac 1165
    sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk-23*/bin/jar 1165
    sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk-23*/bin/javaws 1165

    Checking or Setting the System Java Version in Use with

    sudo update-alternatives --config java

    And for the Java Compiler instead:

    sudo update-alternatives --config javac

    To Switch of Java Version Just Enter the Selection Number on First, Column. :)

    JDK Configuration

  4. 5. Setting Up Env

    (Optional) Setting JAVA_HOME User Environment Variable
    And Edit the Bash environment Configuration file

    nano $HOME/.bashrc

    Append:

    export JAVA_HOME=/usr/lib/jvm/jdk-23[Release]

    Replace [Release] with the actual one on the above Command.
    Possibly to Check the JDK 23 exact PATH use in another window:

    ls /usr/lib/jvm/

    Ctr+x to Save & Exit from nano Editor :)
    Next to Load the New Bash Environment:

    bash
  5. Finally, Test New Java JDK 23 Installation

    java -version

Contents


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,