Comments on How to Install Java (JDK and JRE) on Debian 10

In this tutorial, we will show you how to install Java on the Debian 10 (Buster). We will install both the JDK (Java Development Kit) and the JRE (Java Runtime Environment on a Debian server.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: J

Why root user for JAVA_HOME? Each user can set their own. Updating root or skel causes issues with upgrades.

By: chaewon

Ofcourse its just an example for the root user.

If you're going toconfigure JAVA_HOME variable all users, you can add new configuration to the '/etc/profile.d/' directory.

All your users will automatically has a defined JAVA_HOME environment variable.

cmiiw

 

By: Mark Preston

If there is an alternative to using vim, please add it to this article. I tried the command line, after having to install vim and I cannot understand where in .bashrc to paste the 2 lines you show. Also, I have no idea as to what you mean "Change the 'java-1.11.0-openjdk-amd64' directory with your own and paste it into it." What is "my own???"