+3 votes
91 views
Java in Ubuntu - that's how it works

in Install Linux by (551k points)
reopened | 91 views

1 Answer

+4 votes
Best answer

How to install Java in Ubuntu
1st step
2nd step:
3rd step:
4th step:
5th step:
quick start Guide

Do you need Java in Ubuntu for some programs? Then read our guide to successfully install Java..

image image

Oracle Java is used by some programs and websites, but is not preinstalled by default on Ubuntu. If you need Java, it has to be installed separately. In our post, we will show you how to install Java using the terminal in Ubuntu.

How to install Java in Ubuntu

To do this, follow our step-by-step instructions or take a look at the brief instructions .

1st step

image
Open the terminal . You can search for it under the applications or open it directly with the key combination [Ctrl] + [Alt] + [T] .

2nd step:

image
Update your package manager to get the latest version of Java. To do this, enter the command sudo apt-get update and press [Enter] . Now enter your password and confirm again with [Enter] .

3rd step:

image
Before you install Java, you should check whether Java is already installed on your system with java -version . If this is not the case, the terminal in Ubuntu will show you all available versions from the repositories.

4th step:

image
Use the command sudo apt install default-jre to install the latest Java version for Ubuntu. If you want to install a specific version, you can also choose the other suggested versions of java -version . We recommend installing default-jre . When asked " Do you want to continue ", enter " Y " and press [Enter] .

5th step:

image
Verify the installation again using the java -version command . The terminal now shows you your installed Java version.

quick start Guide

  1. Open the terminal with [Ctrl] + [Alt] + [T] .
  2. Update the Package Manger with: sudo apt-get update . Enter your password and confirm with [Enter] .
  3. Check whether a Java version is already installed and at the same time display all available Java packages via java -version .
  4. Now sudo apt install default-jre enter to install the latest Java version. When asked, confirm the installation with " Y " and press [Enter] .
  5. Verify the installation again using the command java -version . You can now see the installed Java version.

by (3.5m points)

Related questions

+3 votes
1 answer
asked Dec 21, 2021 in Install Linux by backtothefuture (551k points) | 78 views
+5 votes
1 answer
asked Dec 24, 2021 in Tips & Tricks by backtothefuture (551k points) | 69 views
+5 votes
1 answer
asked Dec 21, 2021 in Office by backtothefuture (551k points) | 80 views
+5 votes
1 answer
asked Nov 14, 2021 in Office by backtothefuture (551k points) | 72 views
+3 votes
1 answer
asked Jan 3, 2022 in Tips & Tricks by backtothefuture (551k points) | 104 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,632 questions
10,764 answers
510 comments
3 users