How to Install Java and how to set PATH and CLASSPATH variable in Windows 7
Hello Friends i am writing this post to help people like me who have started learning java so setting classpath and path comes in to our way. So hope this post will help us all.
Here are the Steps to download and setting PATH and CLASSPATH:
Download the JDK(Java Development Kit) HERE
Install JDK and by Default Java installs at this place C:Program FilesJava
Java folder contain two folders of name like jdk1.6.0_20 and jre6.
Now we will set the classpath and path for java in our windows 7 machine
Right Click on My Computer and go to the Properties.
Now Click on Advanced System settings
Click on Environment Variables on next window that appears after clicking Advanced System Setting.
Click on New under system variable on Environment Variables Window.
A new window for New System Variable will open
Before Variable Name write path.
Before variable value type C:Program FilesJavajdk1.6.0_20bin
Click on Ok and Now to set classpath again click on New and again New System Variables will appear.
Variable name = classpath and Variable Value = C:/Program Files/Javajdk1.6.0_20/lib.
Finally we have set path and classpath and now start you java coding best of luck.