Environment Variable - Java

PREREQUISITE:-
1. JAVA (https://goo.gl/hLuWHX)


Steps:-
1. Go to folder where java is installed
usually path is (C:\Program Files\Java\Jdk\bin)


2. Click on the file path to copy it. Right Click to Copy the Path.


3. Go to - Control Panel / System / Advanced System Settings 

4. Move to advanced tab and click on environment variables button


5. Click on New Button
  • Enter Variable Name as PATH
  • Enter Variable Value as the Copied value in Step 2
  • In Our case it is "C:\Program Files\Java\jdk1.8.0_144\bin"
  • Click on OK Button To Save changes

6. To check whether environment variable is set or not 
  • Go to command prompt
  • write javac
  • press enter
  • commands related to java are displayed

7. Congrats Environment Variable is Set


Comments

Popular Posts