- Java is probably one of the most popular programming languages in the world today.
- Improper use of Java commands will not be perceived as internal or external commands, so learning the language well will mean fewer such error messages.
- We have plenty of how-to guides and troubleshooting articles in our dedicated Java page, so take a look at it for more great guides.
- If you simply want to read troubleshooting guides, check out our dedicated Fix page.
While trying to compile a Java program or running tools Activit BPM you may encounter the Java is not recognized as an internal or external command in Command Prompt error.
This error can occur due to multiple reasons including an incorrect path for java.exe file. Since this is a common Command Prompt error, the reasons can vary depending on the user.
If you are also experiencing this error, here are a couple of troubleshooting tips to help you resolve Java is not recognized as an internal or external command error in Windows 10.
How do I fix the unrecognized Java command error?
1. Change the system variable path
- Press Windows Key + R to open Run.
- Type control and click OK to open the Control Panel.
- Search for Advanced System Settings.
- Click on View advanced system settings option.
- On the System Properties window, open the Advanced tab.
- Click the Environment Variables button.
- Under the System Variables section select Path.
- Click the Edit button.
- In Variable value editor, click New.
- Enter the following path:
- C:Program FilesJavajdk1.7.0_72bin
- Click OK to save the changes.
- Click OK for all the open windows.
- Restart the command prompt and check for any improvements.
- Make sure you use the right version of Java. You can find the right path by navigating to:
- C:Program FilesJava.
- Once you have got the right version, add the bin directory to your path.
- Do not delete any other values in the Variable path editor.
2. Install a compatible Java version
If the issue persists, try installing the Java version that is compatible with your Windows OS.
For example, if you are using a 64-bit Windows 10, download and install the 64-bit version of Java. If you are using 32-bit Windows OS, install the 32-bit version of the program.
Several users have reported the issue to have resolved after installing the right edition of Java. Additionally, you can also install both the versions of Java to use either 32 bit or 64 bit depending on your use.
FAQ: Learn more about Java
- What is Java?
Java is a programming language and computing platform. Plenty of tools can be used to interpret its bytecode as well.
- How do I know if Java is installed?
Go to Start > Programs > Accessories > Command Prompt. Type: java -version and press Enter on your keyboard.
If you see a message telling you what version of Java you have installed, it means that you have it.
- Is Java free to use?
Java remains free for general-purpose computing usage and is among the best programming languages available.
The Java is not recognized as an internal or external command in Command Prompt error occurs if the environment variables are not configured correctly.
By adding the correct path to an environment variable, you can resolve the issue. If the error persists, try installing the compatible Java version.
If you know of any other solutions to this Java-related problem, leave us a message in the comments section below and we’ll update the article based on your feedback.