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

in Install Linux by (552k points)
reopened | 108 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 (552k points) | 99 views
+5 votes
1 answer
asked Dec 24, 2021 in Tips & Tricks by backtothefuture (552k points) | 86 views
+5 votes
1 answer
asked Dec 21, 2021 in Office by backtothefuture (552k points) | 99 views
+5 votes
1 answer
asked Nov 14, 2021 in Office by backtothefuture (552k points) | 92 views
+3 votes
1 answer
asked Jan 3, 2022 in Tips & Tricks by backtothefuture (552k points) | 132 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users