After installing java, it needs setting PATH and CLASSPATH . Because of CLASSPATH, we can able to use java predefined classes which are provided by java software (Sun Microsystems..).
Because of PATH, it provides a path for OS to execute commands. In PATH, we have to set absolute path for executable files.(generally bin folder).
Steps for Creating PATH and CLASSPATH
- Open MyComputer, in that on free space right click on mouse. it will open drop down menu, in that select Properties option.
Next Step Now follow the diagram ...
it will open window like the following
Now you type
as Variable Name : PATH
Variable Value : C:\Program Files\Java\jdk1.6.0\bin;
click OK button
Next step follow the diagram
it will open the window like the following
Now you type as
variable Name : CLASSPATH
variable Value: C:\Program Files\Java\jdk1.6.0\jre\lib\rt.jar;.
like the following
click OK button
now in the user varibles, you will see PATH ,CLASSPATH
like the following
click Ok button , again OK button ,now it closes.
By this , you can set PATH and CLASSPATH variables.
No comments:
Post a Comment