The Java files on this site are all Jar files - Java Archives. The Jar file contains all the components such as class file and graphics that make up the application.
One of the advantages of Java is that the applications here should happily run on Windows, Mac and Linux (and others) as long as Java is installed. This page will give instructions and pointers on how to find and install Java.
There are two acronyms you may come across when looking to install Java:
If you only want to run Java programs, this is all you need. It is a much smaller download and quicker install.
If you want to run Java programs AND create Java programs, this is the one you want. Some providers may not list a JRE so you have to install the JDK version anyway.
Most Java JRE / JDK's are based on OpenJDK which is the free and open source implementation of Java. OpenJDK is contributed to by Oracle and many other companies and individuals. Because of this open nature of Java, many companies such as Microsoft and Amazon provide Java distributions too.
As I use the Java distribution created by Adoptium (who refer to their Java distribution as Eclipse Temurin), that will be the one I will describe the download and install process for. The other distributions have similar steps.
Go to https://adoptium.net
Select 'Other platforms'
From the drop down menus, pick your Operating System and Architecture type. Most users are probably Windows and x64.
Java is pretty good with backward compatibility so the default latest version is probably fine. Note that all the applications here are made with version 11 due to its long support.
As mentioned above, if you only want to run Java programs, go for the JRE and the MSI download option.
Run the downloaded MSI, the defaults are fine.
When you have finished, you should be able to run Java Jar files by double clicking on them!
To find out the version of Java you have installed (if any), on the command line, type java -version e.g.:
>java -version openjdk version "11.0.19" 2023-04-18 OpenJDK Runtime Environment Temurin-11.0.19+7 (build 11.0.19+7) OpenJDK Client VM Temurin-11.0.19+7 (build 11.0.19+7, mixed mode)
If you have the JDK installed, or to see if it is installed, at the command line, type javac -version e.g.:
>javac -version javac 11.0.19
Created
(30/03/2024)