Friday, February 18, 2011

To Set Path & ClassPath In Java



Follow this steps should be done to set Path and Classpath to Execute Java :-
1)Install  javac.exe.
2)Then from command prompt go to the directory in which you have saved the program.
3)for example if you found javac.exe in c:\program files\java\jdk1.5.0_12\bin
and you saved java program file in D:\mukesh> then give following command
D:\mukesh>set path=%path%;c:\program files\java\jdk1.5.0_12\bin;.;
press enter
4)for classpath give following command
D:\mukesh>set classpath=%classpath%;c:\program files\java\jdk1.5.0_12\bin;.;
press enter.

No comments:

Post a Comment