Вы находитесь на странице: 1из 17

Page 1

Setting Home path, Class path and Path for Java on Windows 7

Page 2




1. Install java
2. After installing java go to c: then you may find a folder named java like below




Page 3




Setting Path for Java:
Go to My computer and right click on it and click on properties








Page 4






A window will open and click on Advanced system settings on that window





Page 5








Now system properties window wiil open in that click on Environment Variables



Page 6










Now Environment Variables window will open in that in system variables select path and click on edit


Page 7











Now Edit System Variable window will open and in that set Variable Value to
C:\Java\jdk1.6.0_35\bin;C:\Java\jre6\bin;
Page 8



click ok ,ok and ok and close the window.








Page 9



Setting Java Home Path:
Right click on My computer -> properties -> Advanced System settings -> Environment Variables
In System Variables click on New






Page 10



Set Variable Name to ' JAVA_HOME' and Variable Value to 'C:\Java\jdk1.6.0_35'

click ok , ok and ok and close the window







Page 11






Setting Java Class path:
Right click on My computer -> properties -> Advanced System settings -> Environment Variables
In System Variables click on New



Page 12







Set Varable Name to 'classpath' and Variable Value to ' C:\Java\jdk1.6.0_35\lib'

Click ok , ok and ok and close the window.


Page 13









Setting Home path, Class path and Path for Java on Windows 7
through command prompt.

Open command prompt as an Administrator
Page 14




Page 15



Setting Java Home:


CLICK ENTER

Page 16


Setting ClassPath:

Click enter

Setting Path :

Page 17


Click enter