This guide will walkthrough the steps necessary to install the latest versions of Java and Eclipse on your local system.
TABLE OF CONTENTS
You need to make sure you have the latest version of Java Standard Edition (SE) Development Kit (JDK 21) installed on your system. When downloading, keep in mind:
To install the Java SE 21 JDK, go to the Oracle Java Downloads website. Download the appropriate file for your system. Run the installer and follow the prompts:
Screenshot of the Java JDK 21 installer for macOS.
Once done, open a terminal window and verify the version using java -version
and javac -version
. The output will be similar to:
% java --version
java 21.0.4 2024-07-16 LTS
Java(TM) SE Runtime Environment (build 21.0.4+8-LTS-274)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.4+8-LTS-274, mixed mode, sharing)
% javac --version
javac 21.0.4
Note that %
above indicates the command prompt, and the lines below that are the output.
You need to make sure you have the latest Eclipse IDE for Java Developers package. Do NOT download the IDE for Java EE Developers, as we are using Java SE in class.
Go to the Eclipse IDE for Java Developers page for a direct download link appropriate for your operating system. There are installers available for Windows, macOS, and Linux. Once downloaded, double-click the installer and follow the prompts.
Screenshot of the “About Eclipse IDE” window in Eclipse.