How to install Java on Ubuntu?

How to install Java on Ubuntu?
Java is a widely used programming language on the Internet. But as the software devoted to its development is not open, this technology is not installed by default on Ubuntu. In this tutorial, we will see how to install the free version of Java, OpenJDK step-by-step and make it work with your browser.

Note: OpenJDK and Java are identical in their operation. In order to respect the free spirit of Ubuntu, we will focus in this tutorial on OpenJDK.



Install Java OpenJDK on an Ubuntu System

  1. Open a terminal from the launcher or application menu.

    How to install Java on Ubuntu?


  2. Enter the order sudo apt install default-jre icedtea-plugin. This command allows you to install the basic components of Java and the plugin adapted to the most popular web browsers: Firefox, Chrome, etc... If you want to program in Java, then you will also need to install the package default-jdk.How to install Java on Ubuntu?

  3. Type your password, then press the key. Starter.How to install Java on Ubuntu?

  4. Ubuntu tells you which packages to install, their size, and asks you to confirm. Press the key "or" for Yes then validate with Starter.How to install Java on Ubuntu?

  5. Let the packages download and install.How to install Java on Ubuntu?

  6. When the terminal gives you control, you can close it with the command exit or the cross at the top right of the window.How to install Java on Ubuntu?

After a reboot, your Ubuntu PC will be able to handle Java websites. With the default-jdk package, you can also start programming and create your own programs in Java thanks to OpenJDK!

To download :
Ubuntu
Find other tutorials on Ubuntu:
  • How to program the automatic launch of software when Ubuntu starts up?
  • How to disable the automatic launch of software when Ubuntu starts up?
  • How to uninstall software on Ubuntu?
  • How to remove Amazon from Ubuntu?
  • How to install a command line program on Ubuntu?
add a comment of How to install Java on Ubuntu?
Comment sent successfully! We will review it in the next few hours.