Download the Java Development Kit (JDK) from Oracle, OpenJDK, or a trusted vendor
Choose the installer for your operating system
Run the installer and follow the prompts
Accept the license agreement if required
Complete the installation
Open a terminal or command prompt
Verify installation with `java -version`
Verify the compiler with `javac -version`
Set `JAVA_HOME` if needed
Add the JDK `bin` folder to your system `PATH` if needed
Restart the terminal or computer if required
