To install Java on a Windows operating system, follow these steps:
Download the Java JDK (Java Development Kit) from the official Java website (https://www.oracle.com/java/technologies/javase/javase8u211-later-archive-downloads.html
Download the Java JDK (Java Development Kit) from the official Java website (https://www.oracle.com/java/technologies/javase/javase8u211-later-archive-downloads.html
Note: Make sure to choose the correct version for your system (32-bit or 64-bit).
Or if you are not sure which Java version you should really install , Then go to your destop right click on This Pc , click on Properties and check you System type:
Run the downloaded installer by double-clicking on it and follow the prompts to install the JDK.
After the installation is complete, open the command prompt and type "java -version" to verify that Java is installed and to see the version number.
If the installation was successful, you should see a message indicating the version of Java that is currently installed.
Finally, you need to set environment variables to run the Java in command prompt.
Go to View advanced system settins > Environment Variables.
Under System Variables, scroll down and find the Path variable and click Edit.
Click New and paste the path of the JDK's bin folder.
Restart your command prompt and type "javap java.lang.Object" to confirm that the installation was successful.







