Saturday, 5 January 2013

Environment Variables

Environment Variables:


Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer. (source: wiki)


Steps to create JAVA_HOME variable and settings its path
1. Go to Control Panel by selecting the Computer Properties



2. Control Panel would be displayed, Now select the Advance System Settings from the left menu bar (as shown in the below figure)


3. System Properties is displayed with the 'Advanced'  as the current active tab

Click on the Environment Variables button under' Startup and Recovery'


4. Environment Variables dialog is displayed. Environment Variables consists of 'User Variables' and 'System Variables' sections.
Now, we will have to create a new User Variable. So, click the 'New' button under 'User Variables' section


Give the variable name as 'JAVA_HOME' and the variable value as the path of java jdk and click the 'OK' button


6. Observe that the variable 'JAVA_HOME' is created and listed under the User Variables. Now select the 'Path' variable from the System Variables and click the 'Edit' button


7. 'Edit System Variable' dialog is displayed. Path Variable is displayed in Edit mode. Select the Value of the Path Variable and go to end


8. Type ';%JAVA_HOME%\bin and click the 'OK' button.

No comments:

Post a Comment