How do I find where JDK is installed on my windows machine?
To find where the JDK is installed on your Windows machine, you can follow these steps:
Open the Start menu and search for "Environment Variables".
Click on the "Edit the system environment variables" button.
Click on the "Environment Variables" button.
In the "System Variables" section, scroll down and find the "JAVA_HOME" variable.
The value of the "JAVA_HOME" variable is the path to the JDK installation directory.
Alternatively, you can use the where
command to find the location of the java
executable:
Open a Command Prompt window.
Type the following command and press Enter:
where java
This will print the path to the java
executable, which is usually located in the bin
directory of the JDK installation directory.
Note that the JDK installation directory may be different from the JRE installation directory. The JDK includes the JRE and additional development tools, such as the javac
compiler and the javadoc
documentation generator.