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.

  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 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
How does JVM works internally in Java language
How to download and install Java language
Karmehavannan

I am Mr S.Karmehavannan. Founder and CEO of this website. This website specially designed for the programming learners and very especially programming beginners, this website will gradually lead the learners to develop their programming skill.

Recent Posts

How to find reverse number using method in Java

How to find reverse number using method In this article, we will discuss the concept…

16 hours ago

C# inverted full pyramid star pattern

C# inverted full pyramid star pattern In this article, we will discuss the concept of…

3 weeks ago

C# Full Pyramid star pattern program

C# Full Pyramid star pattern program In this article, we will discuss the concept of…

1 month ago

Program to count vowels,consonants,words, characters and space in Java

Program to count vowels, consonants, words, characters and space in Java In this article, we…

1 month ago

How to print multiplication table using Array in C++ language

How to print multiplication table using Array in C++ language In this post, we will…

1 month ago

C Program to multiplication table using Array

C Program to multiplication table using Array In this tutorial , we will discuss about…

2 months ago