Post Top Ad

Tuesday, December 02, 2014

How to fix "java is not recognized as an internal or external command" error.

Hi guys in this post i am gonna show you how to fix "java is not an internal or external command" error.This is the most frequent error message which appears when ever we try to run a java based program in our command prompt.Reason behind this error is due to the improper installation of java program.so lets see how to fix this error.The method which i am gonna show you works 100% perfectly.
Fixing java is not recognized as an internal or external command.

Steps to fix the error:

1.You can download the latest java program from this site Java.
2.Click on start>control panel>system and security>system or press windows+pause on keyboard and you a window will pop up.
3.Now from the left section click on "Advanced system settings" and click on "Environmental variables" under advanced tab.
Browse to Advanced system settings in the system properties and click on Environmental variables.
4.Under system variables search for the "PATH" variable and click on edit.
Under system variables search for the path variable and click on edit.
5.Now we are going to add the path of the java file which is installed on your computer.In order to find the java folder go to program files and then to java,there you will find the java version like jre7.Open the jre 7 or any other version folders and then open bin  folder.Now grab the path to that bin folder like in  my case it is
C:\Program Files\Java\jre7\bin.
6.Now add the path of the folder which you have grabbed into the PATH variables window with semicolon ';'(recommended) and click on ok as shown below.
7.Now  reopen the command prompt and enter java -version and you can see that the command  is executable and there is no error message.
Java success message in the CMD window
That's it friends i hope you enjoyed this article,if you have any queries regarding any topic feel free to ask us through comments and have a nice day.

No comments:

Post a Comment