'javac' is not recognized as an internal or external command, operable program or batch file ok i have the jdk1.6.0_21 installed on my pc, but when i try to use the command promt to convert a .java script to a .class script i get the above error msg. can someone help me here please?
When you install a program (here: javac.exe), you can start that program in two ways:
The solution to this is setting the PATH variable. It holds a ; seperated list of folders, where your executable files live. Set it like this for one time change: set PATH="%PATH%;C:\Program Files\Java 1.X.Y\bin". Now you can issue the command javac MyStuff.java in the folder with your source, or from any other folder, without typing the whole path every time.
See other post for setting this permanently. Hope you enjoy coding!
You will need to use the full path of javac or but the bin folder of your JDK in your environment path.
Cannot give any specific details without knowing your platform.
The javac executable is probably not in your PATH variable.
If that works you need to add the java bin to your PATH
To add the java bin directory to your PATH do the following from a command prompt
That's assuming that you installed java on the c drive.
To make this permanent add the java\bin path to
|show 2 more comments|