- On
- By
- 0 Comment
- Categories: Basic, Java basic
How to set Java path of various operating system
How to set the Java path of the various operating system
We will learn this article that How to set Java path of the various operating system
If you want to work in Java of your computer you must be set path on your system for Java after Java installation
When we install Java to a computer must consider two factors.
- Java installation
- Path setting
How to set path
Windows XP
Select Start, select Control panel. then double click the System, and select Advanced tab
Then, click Environment Variables, In the System variable, Find the path environment variable and select it.
Then click edit. If the path environment variable does not exist, Click New
In the Edit System variable(or New System variable) windows, specify the value of the Path environment variable. click Ok. Then, Close all remaining windows by clicking Ok
Windows Vista:
From the desktop, right-click the My Computer icon
Choose Properties from the context menu.
Click the Advanced tab(Advanced System setting)
Click the Environment variable. In the section System variable, find the path environment variable and select it.
Click edit. If the path environment variable does not exist, click New
In the Edit System variable(or new system variable) window, specipy the value of the path environment variale. Click ok.
Close all remaining windows by cilcking Ok.
Windows 7:
From the desktop, right- click the Computer icon.
Choose Properties from the context menu.
Click the Advanced System setting
Click the Environment variables. In the section System variable, find the path environment variable and select it.
Click Edit. If the path environment variable does not exist, Click New.
In the Edit System variable(or New System variable)window, specify the value of the environment path variable. Click OK. Close all remaining windows by cilcking Ok.
How to set java path? After Java installation, click my computer then click C drive then click program Files then click Java folder then click JDK package then click bin folder
Then click the Address bar and copy the path of bin folder
write Click my computer and select properties
Then click Advanced system setting
Then click Environment variable
Then click new
Then type variable name – path
paste variable value – C:\Program Files\Java\jdk1.8.0_112\bin(path of bin folder)
To find the path of variable value – copy the address of path of bin folder
then click ok
You successfully set a path of java in your machine
you need to specify the full path to the executable every time you run it, such as:
C:\Java\jdk1.7.0\bin\javac MyClass.java