Tuesday, March 22, 2011

'javac' is not recognized as an internal or external command

This is the error message comes to your command prompt when you are going to compile your .java file first time.
This is because you didn't set the path of the javac.exe into your environment variables. This can be set as follows:
Go to "System Properties" =>"Adnance" tab => "Environment Variables" command button at the bottom of your screen.
Now from the bottom list box select PATH and click "edit" button to edit.
Now add the path of drivename:/javaFolder/bin separated by semi colon (;) with other paths that are set already in your system.
Be careful while adding these path to PATH as there will be some other paths already shown, those should not be deleted.

If you could click on some of the google ads you see on the right side. It will help me to run this blog and motivates me ;)


  1. on a related not you would also need to learn about how to set classpath in java to compile the program successfully.

  2. I have read your blog its very attractive and impressive. I like it your blog.

    Java Training in Chennai Java Training in Chennai | Core Java Training in Chennai | Java Training Institutes

    Online Java Training Java Online Training | Java J2EE Online Training | JavaEE Training Institute in Chennai