How to Install Java

Have you just installed a program on your PC but you can't get it to work because the lack of Java software is detected? Don't worry, it is a problem that can be solved extremely quickly and easily. All you have to do is download the program and install it on your computer following the directions I am about to give you.

Before getting to the heart of the guide, however, it is good to specify one important thing. There are two different Java software packages available for download: the first is called Java Runtime Enviroment and is used exclusively to run applications in Java (offline and online, via browser); the second is called Java Development Kit (JDK) and it also contains all the tools you need to develop applications in this format (in case you want to try your hand at creating them).

Having clarified this fundamental difference, identify the software version that best suits your purposes and find out how to install Java correctly by following the instructions below. I assure you it is not difficult.

Java Requirements

Before getting into the tutorial and explaining yourself in detail how to install Java on your computer, it seems only right to explain i operating systems and browser with which the software is still compatible ei hardware requirements necessary for its execution.

As regards the operating systems, there are no major problems: Java is a multi-platform software and it is possible to use it on all popular systems, such as Windows, MacOS e Linux. As for browsers, on the other hand, since the Java plugin is unsafe and no longer in use, there are very few navigation programs that still allow its execution. Below you will find the complete list with all the necessary software and hardware requirements.

Windows

  • Windows 10 (8u51 and later)
  • Windows 8.x
  • Windows 7 SP1
  • Windows Vista SP2
  • Windows Server 2008 R2 SP1 (64-bit)
  • Windows Server 2012 and 2012 R2 (64-bit)
  • RAM: MB 128
  • Disk space: 124 MB for JRE; 2 MB for Java Update
  • Processor: Pentium 2 266 MHz or higher
  • Browser: Internet Explorer 9 and later

MacOS

  • Mac with macOS 10.8.3 or later or macOS 10.9 or later installed
  • Browser: Safari (11 or earlier)

Linux

  • Oracle Linux 5.5+1
  • Oracle Linux 6.x (32-bit), 6.x (64-bit)
  • Oracle Linux 7.x (64-bit) (8u20 and later)
  • Red Hat Enterprise Linux 5.5+1, 6.x (32-bit), 6.x (64-bit)
  • Red Hat Enterprise Linux 7.x (64-bit) (8u20 e successivi)
  • Suse Linux Enterprise Server 10 SP2+, 11.x
  • Suse Linux Enterprise Server 12.x (64-bit) (8u31 e successivi)
  • Ubuntu Linux 12.04 LTS, 13.x
  • Ubuntu Linux 14.x (8u25 and later)
  • Ubuntu Linux 15.04 (8u45 and later)
  • Ubuntu Linux 15.10 (8u65 and later)
  • Browser: Firefox

How to Install Java on Windows

After verifying that if your PC meets the requirements for installing Java, you can take action. Below you will find all the steps to be taken on the systems Windows.

How to Install Java Runtime Environment

If you only need Java to run applications downloaded from the Internet or to take advantage of online services that require its presence on your PC, connect to the program's website and first click on the button I accept all cookies and then Java Free Download e Accept and start free download.

A download complete, apri il package .exe just obtained and first click on Yesand then Install e OK. So wait for all the components necessary for the software to work from the Internet (it should take a few seconds) and presses on Close to conclude the setup.

If outdated versions of Java are found on your computer, you will be prompted to remove them. To accept, first click on Uninstall and then forward. It's that easy.

At the end of the installation process, to test the functioning of Java on your PC, try to open a file in JAR format or a file in JLNP format. As for the browser plugin, instead, try to start one of the browsers still compatible with Java (eg. Internet Explorer), visit this page and click on the button first I accept all cookies, Then Agree and continue and finally on the button Run to enable the Java plugin.

Note: some applications, such as those distributed by the Revenue Agency, may require the installation of specific versions of Java software. If an application does not work even after installing the Java Runtime Environment, consult its documentation carefully and find out which version of Java you need to install.

How to Install Java JDK

If you are going to develop applications in Java, you must installare Java Development Kit. Then connect to this web page, put the check mark next to the item Accept License Agreement collocata sotto the dicitura JAVA SE Development Kit xx and click on the first link corresponding to Windows to download the latest software version suitable for 64-bit Windows systems. If you have a 32-bit version of Windows and not 64-bit, you need to download the old version 8 of JDK via this web page by clicking on the link Windows x86.

A download complete, apri il package .exe obtained and first click on Yes, Then Next twice in a row and finally on Close to finish the setup. Next, I recommend that you adjust the environment variables of the operating system, so that everything works correctly during app development.

Open, therefore, theFile Explorer (the yellow folder icon located at the bottom left of the taskbar), right click on the icon What PC (o computer) located in the left sidebar and select the item Property give the menu to compare.

Nella finestra che si apre, select the voice Advanced system settings from the left sidebar, press the button Environment variables ... and perform these two simple operations.

  • Click on the button New ... located under the heading System variables. Type JAVA_JDK in the field Variable name; the JDK path (eg C: Program Files Java jdk-11.0.2) in the field Variable value: and click on OK per salvare i Cambiomenti.
  • Select the variable Path from the list of System variables and click on the button Modification. Then edit the field Variable valueinserting the string% JAVA_JDK% bin; at the end of what is already in it and click on OK per salvare i Cambiomenti.

To deepen the subject and find out in more detail how to program in Java, consult the tutorial I published on the subject.

How to Install Java on Mac

I use a Poppy? No problem: installing Java and JDK is a breeze even on Apple-branded computers: you can find all the steps to take right below.

How to Install Java Runtime Environment

To download Java Runtime Enviroment on your Mac, connect to the program's website and click the button first I accept all cookies and then Java Free Download e Accept and start free download.

When the download is complete, to install the software on your computer, open the package .dmg just downloaded and launch the file that is inside. In the window that appears on the screen, click on the button apri, type in the administration password of the Mac (the one you use to access the system) and give Submit. Then click on the buttons Install, OK e Close And that's it!

To test how Java works, try opening a JAR format file or a JLNP format file. To test the browser plugin, instead, visit this page from Safari and click on the button first I accept all cookies, Then Verify Java Version and on the button to enable the Java plugin. Plugin support has been removed in macOS Mojave, so if you're using Safari version 12 or later, you won't be able to use the Java plugin in your browser.

Please note: unless explicitly requested by an application you can't do without, don't install the old version Apple's legacy Java SE 6 which is now obsolete and subject to several security holes (in any case, I point out that you can find it directly on the Apple website).

How to Install Java JDK

If you wish installare Java Development Kit on macOS, connected to the official website of the software, put the check mark next to the item Accept License Agreement collocata sotto the dicitura JAVA SE Development Kit xx and click on the first link related to MacOS.

Once the download is complete, open the package dmg you downloaded from the Java site, launch the file inside and click on the button first Continue and then Install. Then type in the admin password of the Mac, come on Submit e pigia his Close to finish the setup. Choose freely if to shift o do not move the software installation package to the Trash.

How to Install Java on Ubuntu

Purposes Ubuntu and you don't know how to install Java on the latter? Don't worry: the procedure you have to go through is not complicated. Read on and you will realize it.

The first step you need to take is to open the terminal, looking for it in the distro's application menu (the one accessed by clicking on the grid located in the lower left corner of the screen). At this point, you need to give the following commands (after the first one, you will need to type the admin password).

  • sudo apt update to update packages;
  • sudo apt install default-jre to install Java Runtime Environment. Confirm by pressing S;
  • sudo apt install default-jdk to install JDK. Confirm by pressing S.

For more information on how to install Java on Ubuntu, see the tutorial I dedicated specifically to this procedure.