1. Overview

Steps to include Java in Path environment variable after Java installation, where we need to include JDK bin directory location, to make sure the Java is recognized across the machine or the operating system.

In this article, let's look at how we can include Java in the Path environment variable.

2. Content

2.1. Why set up the Path environment variable?

Refer to the below article for details.

https://randomcodez.com/why-set-java-in-path-environment-variable

2.2. How to set up the Path environment variable?

Setting up the Path environment variable is very simple and straightforward.

Take a look at the video to know how to set it up or follow the below steps.

  • Open your system environment variables by searching for "environment variables" in Windows search.
  • Then, double click on the "Path" variable or select it and click on "Edit" to open the values included in it.
  • Then add the installed Java "bin" directory location, which is something like the below location, and save the changes.
C:\Program Files\Java\jdk-16.0.2\bin

NOTE: The location and the JDK version may change based on your installation, and the above location is just an example.

3. Conclusion

We should know how to set up the Path environment variable immediately after Java installation.