Sunday, January 22, 2012

How to set Classpath in Java Permanetely

CLASSPATH is very important for the JAVA runtime environment.We have to set this manually.here is the procedure for setting up a class path.

1.Download and install the JDK(Java Development Kit ) from www.java.com/getjava/ .
2.Now open Computer and click on System Properties icon which is at middletop icons list.
3.Click on Advanced System Properties and press yes if another window poped.
4.Now click on Environment Variable icon and another window is opened .
5.Now under the user variable Click on NEW .
6.Enter the PATH in variable name.
7.Now copy the directory in which your Java is installed .
Example:-C:\Program Files\Java\jdk1.7.0\bin
You should include bin folder of jdk.
8.Now press 3 times OK icon and close the System Properties Window.


Now Your classpath is permanetely set.now just write the java program and compile it.

Thanks

No comments:

Post a Comment