PDA

View Full Version : Command line is telling that "javac" is no internal or external command


ulasad
Jul 17, 2008, 05:02 AM
Hi fellow I have just started java , my operating system is windows vista , I have installed java but when I give "javac" command on command line after writng the code in note pad the command line gives an error that javac is not an internal or exetrnal command... if any 1 can help
Thanks

archleader
Jul 8, 2009, 10:41 PM
Hi,
You need to set three environment varibales for that-
right click on my computer ,select properties-go to advanced tab -environment variables-here you have to set three variable name and there path-
1:variable name JAVA_HOME value=path up to the place where your jdk is
2: varable name =classpath value up to your lib folder is
3:varibale name =path value=path up to the lace you bin folder is
open a new cmd prompt and type java and java c both will run fine

Enjoy java programming.