To set the Java path using system environment variables in
Windows 10, you need to follow these steps:
Install Java:
First, ensure that you have Java installed on
your system. If not, download and install the Java Development Kit (JDK) from
the official Oracle website or another trusted source.
For downloading Java 8- follow the link given below
https://www.oracle.com/java/technologies/downloads/#java8-windows
Find the JDK Installation Directory:
Locate the directory where you installed the JDK. By default, it is typically installed in a directory like
C:\Program Files (x86)\Java\jdk1.7.0_17\bin
Open System Properties:
Right-click on "This PC" (or "My
Computer" on older Windows versions) and select "Properties."
Click on "Advanced system settings" on the left
side of the window.
Open Environment Variables:
In the "System Properties" window, click on the "Advanced" tab.
Click the "Environment Variables" button at the bottom.
Edit System Environment Variables:
In the "Environment Variables" window, under the
"System variables" section, find and select the "Path"
variable, then click the "Edit" button.
Add Java Bin Directory:
In the "Edit Environment Variable" window, click
the "New" button.
Enter the path to the "bin" directory of your JDK
installation. This directory contains the Java executable files. For example,
if your JDK is installed in C:\Program Files (x86)\Java\jdk1.7.0_17\bin, you would add
Click "OK" to close each of the open windows.
Verify Java Installation:
Open a Command Prompt window and
type javac to verify that Java is now in your system's path and
correctly installed.









0 Comments