Share this article
Improve this guide
Fix: ‘Java’ is not Recognized as an Internal or External Command
Here’s how to recognize Java in CMD with a few tweaks of the path
5 min. read
Updated onOctober 9, 2023
updated onOctober 9, 2023
Share this article
Improve this guide
Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more
Key notes
While trying to compile aJavaprogram or running tools like Activit BPM you may encounterthe‘java’ is not recognized as an internal or external command, operable program or batch fileerror. Now, two big questions arise, and we shall try to address them accordingly.
Why my Java version is not showing in CMD? You might be wondering, and legitimately so, what’s this all about. Since this is a common Command Prompt error, the reasons can vary depending on the user.
Then, there is the most crucial matter of how to recognize Java in CMD. So, let’s take a closer.
Why is Java not detected on my computer?
Thiserrorcan occur due to multiple reasons, including:
➡️ an incorrect path for java.exe file – In this case, the system variables such as JDK or JRE\bindirectory may not be not properly set
➡️ Java is not installed or not enabled
Here are some of the most common problems related by users worldwide:
How do you fix Java is not recognized as an internal or external command operable program or batch file?
1. Check if Java is properly installed on your PC
via Control Panel
via Command Prompt
In addition to these two methods, you could also try to check:
If the java is not recognized as an internal or external command error persists and should Java be installed, it’s likely that the directory was not added to the path, making it unable to find Java at runtime.
Here’s what you need to do next.
2. Change the system variable path
Notes:
3. Install a compatible Java version
If the issue persists, try installing theJavaversion that is compatible with your Windows OS.
For example, if you are using a 64-bitWindows 10, download and install the 64-bit version ofJava. If you are using a 32-bit Windows OS, install the 32-bit version of the program.
Several users have reported the issue to have been resolved after installing the right edition of Java. You can also install both versions of Java to use either 32-bit or 64-bit, depending on your use.
⇒Download Java latest versionfor Windows 10 [32bit / 64bit]
If you see a message telling you what version of Java you have installed, it means that you have it. However, if theinstallation cannot complete with Java error 1603, we have a few extra tips for you.
Now, Java can be downloaded on its own just as it can be a plug-in extension. If that is the case, you might want to check your browser and ensure the Java add-on is enabled.
The‘java’ is not recognized as an internal or external command, operable program or batch file.erroroccurs if the environment variables are not configured correctly.
You can resolve the issue by adding the correct path to an environment variable. If theerrorpersists, try installing the compatibleJavaversion.
This isn’t the only issue you can encounter, and many reportedThe term is not recognized as the name of a cmdletin PowerShell, and we have a special guide that addresses that issue.
If you know of any other solutions to this Java-related problem, leave us a message in the comments section below.
More about the topics:Java,windows 10
Tashreef Shareef
Tashreef Shareef is a software developer turned tech writer. He discovered his interest in technology after reading a tech magazine accidentally. Now he writes about everything tech from Windows to iOS and streaming services to IoT at WindowsReport.
User forum
1 messages
Sort by:LatestOldestMost Votes
Comment*
Name*
Email*
Commenting as.Not you?
Save information for future comments
Comment
Δ
Tashreef Shareef