Java is not recognized as an internal or external command

July 2024 · 3 minute read
java is not recognized as an internal or external command

XINSTALL BY CLICKING THE DOWNLOAD FILE

To fix various PC problems, we recommend DriverFix:
This software will keep your drivers up and running, thus keeping you safe from common computer errors and hardware failure. Check all your drivers now in 3 easy steps:
  • Download DriverFix (verified download file).
  • Click Start Scan to find all problematic drivers.
  • Click Update Drivers to get new versions and avoid system malfunctionings.
  • 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

    java is not recognized as an internal or external command

  • 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.
  • Notes:

    You need the latest version of Java to stay efficient, so check out this article to get it.

    2. Install a compatible Java version

    java is not recognized as an internal or external command
    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.

    If you see a message telling you what version of Java you have installed, it means that you have it.

    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.

    ncG1vNJzZmivmaOxsMPSq5ypp6Kpe6S7zGihmq6RYruwwIyrnJynl6O2u7HDZqCnrJWnu6K4jJ6vrZ2io66tecKopKaZnpl8