HOW TO SET PATH FOR JAVA

HOW TO SET PATH FOR JAVA



Checking the version of java in your System:-
  • Open Run command using key Windows + R.
  • The command prompt will appear and now type java –version
  • you will see message and version of java like this:-New Bitmap Image.jpg

For Setting Path:-
  • In case of java we can set path in two ways:-
    • Temporary path set:-
For temporary path setting first open command prompt and enter the address of bin folder of java that is present in program files in your C: drive (Commonly).
New Bitmap Image - Copy
Here, cd is used for Change Directory.
Using this, you will able to set path for java temporary means whenever you close the cmd path become disturbed.
  • Permanent path set:-
  1. Open the properties of your Computer using My Properties.New Bitmap Image - Copy (2).jpg
  2. Click on Advanced system
  3. Open the Advanced Panel in it.
New Bitmap Image - Copy (3).jpg
  1. Now, Click on Environment Variables.
  2. A Window will appear like this :-         New Bitmap Image - Copy (4).jpg
  3. Now Click on New (You can choose either one but if you are using multiple accounts then choose System variables else to choose User Variables).
  4. You will see a new Window.     New Bitmap Image - Copy (5).jpg
  5. Enter the fields’ information as shown above.
  6. Click OK in all Windows.
  7. Close cmd and open it again.
  8. The permanent path will be set.

Comments

Popular posts from this blog

JAVA ARCHITECTURE

Introduction Of JAVA

OOPs Concepts