Java' Is Not Recognized as an Internal or External Command

Java' is not recognized as an internal or external command

You need to configure your environment variables, JAVA_HOME and PATH.

JAVA_HOME must contain the path to java, and you should add %JAVA_HOME%\bin to PATH

Alternatively, you can simply add to your PATH the whole path to the bin folder, without the JAVA_HOME variable, however, this makes a little more annoying when you need to have more than one java version on your machine (that way you only need to change JAVA_HOME and don't even bother with PATH)

java' is not recognized as an internal or external command, operable program or batch file in Windows 10

If you use the gui of windows for env variable don't use %JAVA_HOME% but the real path.
The variable are not interpreted in the gui.

And in consequence you have %JAVA_HOME% directly in your path who will not be interpreted when you enter your command

java -version not working in command prompt

Windows 2k8 R2 server-
For both java [-option] or %JAVA_HOME% to work in the command line you need the following:

In Control Panel->System and Security->System->Advanced system setting->Advanced->Environment Variables->System Variables

Edit the Path variable and add a ";" after the last value and add the the path to the Java bin directory:
e.g.- C:\Progra~2\Java\jre6\bin\

Add the JAVA_HOME Variable with the value set to the path for the java executable:
e.g.- C:\Progra~2\Java\jre6\bin\java.exe

ERROR:- 'java' is not recognized as an internal or external command

Just add C:\Program Files\Java\jdk1.7.0_06\bin to your PATH.

The reason is that the batch file C:\activiti-5.10\activiti-5.10\apps\h2\h2.start.bat has a raw java command which relies on java.exe being on the PATH.



Related Topics



Leave a reply



Submit