1.

How to set JDK path in Java

Answer»

GO to “Start” and type “Environment Variables”. Then you will reach a window “”.

System Properties

Now, click on “Environment Variables”:

Now click on “Path” in the user variables drop down list.

Click on “New” and ENTER the following path. We are setting path here for Java 11:

C:\PROGRAM Files\Java\jdk-11.0.1\bin

After adding the path above, click “OK”.

Click “OK” again.

Click “OK”.
You have successfully set the JDK Path.

For verification, go to command prompt (cmd) and type:

java -version

The above shows that we have successfully set the path.



Discussion

No Comment Found