I installed jdk 1.6.0_16 version and set the class path to c:\program files\java\jdk1.6.0_16\bin.
When i compiled the program, i got an error javac is not recognized as an internal or external command,operable program or batch program.
Do i need to save the programs inside jdk?
sorry it was not to the class path i added, I added it to the path.
Joined: Oct 13, 2005
Did you open a new command prompt window? The new PATH is only implemented in new command windows.
If that doesn't help:
I'm not running Windows at the moment, so I can't check the syntax, but try
echo %PATH% or echo $PATH or %PATH% or $PATH and see whether any of those gives the contents of your PATH. Check whether there are any spelling errors and that the path entries are separated by ; correctly.
Joined: Apr 04, 2008
I checked the path again. The error was due to a single blank space in the path