Install Java: Overview

One-time setup to get Java on your machine: check whether you already have it, then install it on Windows, macOS or Linux.

13,515 views

Do you want to try out Java? Or you’ve been using it for a while and need to install it again?

Just like other programming languages, you will need some one-time steps to have the required tools locally available.

Let’s first test if you already have these tools and, if not, let’s install them.

  • Check your Java installation

    How to find out whether Java is already installed and which version you have, using java -version in a terminal on Windows, macOS or Linux.

  • Find Another Java Version

    Which Java distribution to install? OpenJDK is the source; the runtime you install comes from a distribution. An overview of the free builds you can choose between.

  • Install Java on Linux

    Install Java on Linux with a Debian package installer, and find the other distributions and versions available for your system.

  • Install Java on MacOS

    Install Java on macOS with a ready-made installer, for both Intel and Apple silicon Macs.

  • Install Java on Windows

    Install Java on Windows with an MSI installer, then check the installation from the command prompt.

Share this page

Found a mistake, or something to add? Edit this page on GitHub

Join the discussion