Java is a popular object-oriented programming language. Learn how to install and run it on Windows 11.
- One of the most favorited and used programming language for back-end development. Java is also very popular choice for mobile apps & desktop apps with game development as well.
- It is necessary to every one who looking to learn Java. How to install Java on different operating systems, Here we are installing Java on Windows 11.
Before starting installation of Java first we need to check Java is already installed or not :-
- To check the JDK or Java on your windows system first open the Command Prompt (CMD) or Windows PowerShell.
- Run the following command on CMD
java --version
- If java not installed then you will get following output
'java' is not recognized as an internal or external command, operable program or batch file.
- To install JDK by JDK installer we need to go on Oracle website to install the available supported version of JDK installer by selecting your operating system & its CPU bit.
- As soon as the download completes, launch the installation file and click on Yes.
- The JDK installation wizard will be launched. In the dialog box, click on Next.
- On the next screen, you will be asked for the location of your file. Click on Next.
- Once the JDK installation is complete, click on Close.
- Now open the CMD and run the command for check the java version to check if it installed correctly or not.
You will get following kind of outputjava --version
java 20.0.2 2023-07-18 Java(TM) SE Runtime Environment (build 20.0.2+9-78) Java HotSpot(TM) 64-Bit Server VM (build 20.0.2+9-78, mixed mode, sharing)
- Finally Java has been installed on your system successfully.