I have downloaded the java JDK but I am unable to run the program. It is giving me an error like: javac is not recognized as an internal or external command.I have written the program " Hello.java
and put it in the C directory.
Where I am doing the mistake? I am compiling it with: javac C:\hello.java
Do I need to give path location of my jdk version>?How do i do that? I have installed my Java in program files of C directory.
C:\>set PATH="%PATH%;C:\Program Files\Java\jdk1.6.0_22\bin"
C:\javac hello.java
I am still getting the error