Download the Java JDK installer from the official Oracle or OpenJDK website
Run the downloaded installer
Follow the installation prompts
Choose the installation folder if prompted
Complete the installation
Open System Properties in Windows
Go to Advanced system settings
Open Environment Variables
Under System variables, select Path and click Edit
Add the JDK bin folder path
Create or verify the JAVA_HOME variable with the JDK installation path
Click OK to save all changes
Open Command Prompt
Run `java -version`
Run `javac -version`
