You are on page 1of 1

* right click on my computer to go to system properties

* click on advanced tab and select environment variables


* under system variables click on new and type JAVA_HOME in variable name, ;
%JAVA_HOME%\bin in variable value.
* again under system variables click on new and type path= in variable name,
C:\Program Files\Java\jdk1.5.0_05\bin
in variable value.
* finally click on ok and ok again.
* to test java is working or not type the following command java -version in
command prompt.
(in this case you need to save your file in java folder)

***************************************************
* right click on my computer to go to system properties
* click on advanced tab and select environment variables
* again under system variables click on new and type path=in variablename name)
type C:\Program Files\Java\jdk1.5.0_05\bin
in variable value.
* finally click on ok and ok again.
* to test java is working or not type the following command java -version in
command prompt.
(in this case you need to save your file in c drive)

You might also like