Codeforcoding

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.

  1. Java installation
  2. 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

the way of bin folder - How to set Java path of various operating system
the path of the bin folder

Then click the Address bar and copy the path of bin folder

write Click my computer and select properties

properties dialogue box

Then click Advanced system setting

System Properties dialogue box

Then click Environment variable

Environment variable dialogue box

Then click new

New user variable dialogue box

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

Suggested for you

Hollow world program in Java

Data type and variable in Java

History of Java

Download and  install  Java

How to install Java

Feature of Java programming language

Flavour and versions of Java Programming language

How does JVM works internally in Java language
How to download and install Java language
Exit mobile version