Step 1 – Prerequisites

First of all, log in to Debian 10 Buster system as the sudo user and install some required packages on your Debian system.

Step 2 – Download Java Debian Package

Download the latest Java SE Development Kit 13 LTS debian file release from its official download page or use following commands to download from command line.

Step 3 – Install Oracle Java on Debian 10

Now, use the Debian package installer utility (dpkg) to install a downloaded Java package on your system. Simply run the following command on the system terminal. The Java 13 has been installed on your system. If you have multiple version’s of Java installed on the same system. Use the following commands to set Java 13 as default version on your system: Use above command only If there is multiple Java version installed on your Debian 10 Linux system. After using the above commands, you also need to other binaries to set as default for the JDK installation. Execute the commands to set javac and jar as default:

Step 4 – Verify Java Version

Therefore Java 13 has successfully installed on your Debian 10 Buster system. Now check the currently active Java version by running the following command.

Step 5 – Configure Java Environment Variables

Most of the Java-based applications uses environment variables to work. Create a script as below. Now set all the required environment variables for Java. This file will automatically reload settings on system reboot. Now, Add/Update following values: Then save your file and exit. Then load these setting to current active shell also You have successfully installed Java 13.0.1 on Debian 10 Buster Linux system.


title: “How To Install Oracle Java On Debian 10 Buster Tecadmin” ShowToc: true date: “2022-12-11” author: “Mary Price”

Step 1 – Prerequisites

First of all, log in to Debian 10 Buster system as the sudo user and install some required packages on your Debian system.

Step 2 – Download Java Debian Package

Download the latest Java SE Development Kit 13 LTS debian file release from its official download page or use following commands to download from command line.

Step 3 – Install Oracle Java on Debian 10

Now, use the Debian package installer utility (dpkg) to install a downloaded Java package on your system. Simply run the following command on the system terminal. The Java 13 has been installed on your system. If you have multiple version’s of Java installed on the same system. Use the following commands to set Java 13 as default version on your system: Use above command only If there is multiple Java version installed on your Debian 10 Linux system. After using the above commands, you also need to other binaries to set as default for the JDK installation. Execute the commands to set javac and jar as default:

Step 4 – Verify Java Version

Therefore Java 13 has successfully installed on your Debian 10 Buster system. Now check the currently active Java version by running the following command.

Step 5 – Configure Java Environment Variables

Most of the Java-based applications uses environment variables to work. Create a script as below. Now set all the required environment variables for Java. This file will automatically reload settings on system reboot. Now, Add/Update following values: Then save your file and exit. Then load these setting to current active shell also You have successfully installed Java 13.0.1 on Debian 10 Buster Linux system.