Professional Documents
Culture Documents
Setting Environment Variables in Java
Setting Environment Variables in Java
***************************************************
* 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)