javac is not recognized as an external or internal command

javac is the compiler tool in java language which converts the java classes and interfaces in to bytecode class files. When you type javac in Windows command prompt, you might receive the following error

‘javac’ is not recognized as an internal or external command,
operable program or batch file.

This could be because the windows system is not able to find the javac tool. This can be resolved by specifying the javac path in path system environment variable. The environment variables section can be accessed using the Advanced System Settings.

image

In Category: Java

Ravi Shankar

A Software developer and blogger who is always looking to provide technical help to the wider community.

Show 1 Comment
  • J. Graves September 1, 2011, 12:13 am

    So I spent 4-8 hours trying to get my javac to work on the command prompt. So much reading, and you are the one that helped me fix it.

    Best site ever! Took me 3 minutes on this page.

    J. Graves

Leave a Comment

Get your free copies of the following tech guides by joining the Digital Answers mailing list.