Table of Contents
To Windows
After you’ve installed the Java Development Kit(JDK) in Windows, you must set the path in Java Environment variable to point out the JDK installation directory.
Default drive is Programming file in C Drive.
If you save the java source file inside the JDK/bin folder, this path is not required. Otherwise, if you save java source file in any other directory or folder(out side of the JDK/bin folder), it is required to set path to compile and run the java program.
There are 2 methods to set java path
set psth= C:Program FilesJavajdk1.8.0_45bin
if you like setting the permanent path of JDK, you must consider the following steps
1. Open my computer, click right mouse button and select properties
2. Click on Advanced system setting
Click on Environment Variable
Click the new button in the user variable
Write path in Variable name
Copy the path or Address of JDK bin folder
Paste path of bin folder in Variable value then click ok button
Then click on ok button
Then click OK button
Ok you set permanent path of Java for the run and compile on your PC
Related post
Subtract two numbers using method overriding Program 1
PHP Star triangle Pattern program Here's a simple Java program that demonstrates how to print…
Using Function or Method to Write to temperature conversion: Fahrenheit into Celsius In this article,…
Function or method of temperature conversion from Fahrenheit into Celsius In this article, we will…
Write temperature conversion program: from Fahrenheit to Celsius In this article, we will discuss the…
How to write a program to convert Fahrenheit into Celsius In this article, we will…
This website uses cookies.