Wednesday, March 16, 2022

java setup path for windows

 

Environment variables:

The environment variables store data that is used by the operating system, other programs, and user data. For example, the WINDIR environment variable contains the location of the Windows installation directory. Programs can query the value of this variable to determine where Windows operating system files are located.

Setup for Windows

To install Java on Windows:

STEP1

Go to "System Properties" (Can be found on Control Panel > System and Security > System > Advanced System Settings) or 



STEP2

Click on the "Environment variables" button under the "Advanced" tab



STEP3

Then, select the "Path" variable in System variables and click on the "Edit" button

Click on the "New" button and add the path where Java is installed, followed by \bin. By default, Java is installed in C:\Program Files\Java\jdk-11.0.1 (If you have made some changes during the installation process). In that case, You will have to add a new path with C:\Program Files\Java\jdk-11.0.1\bin.

Then, click "OK", and save the settings.



STEP4


write the below commands in command prompt


At last, open Command Prompt (cmd.exe) and type java -version to see if Java is running on your machine

Write the following in the command line (cmd.exe):

C:\Users\Your Name>java -version

If Java was successfully installed, you will see something like this (depending on the version):

java version "11.0.1" 2018-10-16 LTS

Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)

Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)

RELATED ARTICLES


No comments:

Post a Comment

Did you find this article helpful?
😁 😀

Java identifers

  Identifiers All Java variables must be identified with unique names . For example -different people have different names These unique ...