Debian: Install and set up Java - how it works
Java is one of the world's best known programming languages. This practical tip shows you how to install and set up Java on Debian.
Install Java on Debian - Here's how
Before you can actually start installing Java, you must first run the "sudo apt-get update" command and the "sudo apt-get install default-jdk" command (without the quotation marks).
- Also use the "sudo apt-get install software-properties-common" command to install the software properties common package.
- You should then use the sudo add-apt-repository "deb //ppa.launchpad.net/webupd8team/java/ubuntu xenial main" command to ensure that the required repository is available.
- Then update your system again with the command "sudo apt-get update".
- You can now easily install Java with the command "sudo apt-get install oracle-java9-installer".
Debian: Set up Java - how it works
In the following we would like to show you how to set up Java correctly on your Debian system:
- With the command "sudo update-alternatives --config java" you can manage and configure Java. For example, which version should be used primarily if you have installed different versions.
- It is also very important to create the "JAVA_HOME" environment variable: To do this, execute the "sudo nano / etc / environment" command and add the line "JAVA_HOME =" / usr / lib / jvm / java-9- to the end of the file oracle ".
- Note: The path to your Java installation may differ slightly.
Already knew? That's why Linux is more common than Windows
In the next practical tip, we will show you how you can easily control radio-controlled sockets with your Raspberry Pi.