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

PHP Star Triangle pattern program

PHP Star Triangle pattern program In this tutorial, we will discuss about PHP Star Triangle…

1 month ago

PHP Full Pyramid pattern program

PHP Full Pyramid pattern program In this tutorial, we will discuss about PHP Full Pyramid…

2 months ago

5 methods to add two numbers in Java

5 methods to add two numbers in Java In this tutorial, we will discuss the…

2 months ago

Python Full Pyramid star pattern program

Python full Pyramid star pattern program In this tutorial, we will discuss  the concept of…

5 months ago

Write a function or method to convert C into F -Entered by user

Write a function or method to convert C into F -Entered by the user In…

10 months ago

How to write a function or method to convert Celsius into Fahrenheit

How to write a function or method to convert Celsius into Fahrenheit In this tutorial,…

10 months ago