Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Fix 'javac' is not recognized as an internal or external command in Windows and Linux? Example

How To Fix 'javac' Is Not Recognized As An Internal Or External Command In Windows And Linux? Example
Hello guys, if you are trying to compile your Java source file and getting "'javac' is not recognized as an internal or external command" in Windows or Linux machine like Windows 10 or Redhat 8 but not sure what to do then you have come to the right place. This is a common Java related error and can occur to an operating system like Windows, Mac or Linux if java is not installed properly like only JRE is installed and JDK is not installed or javac is not added on PATH environment variable. In this article, I will explain what this error is and how you can fix it by following step by step guide I share, but if you still cannot solve this problem on your own then just ask for help in comments. But don't forget to check your PATH environment variable because that's where JDK/bin directory needs to be present, which contains all Java related commands including "javac" and "java" which are used to compile and run Java applications.


This post first appeared on Javarevisited: Blog About Java Programmin, please read the originial post: here

Share the post

How to Fix 'javac' is not recognized as an internal or external command in Windows and Linux? Example

×

Subscribe to Javarevisited: Blog About Java Programmin

Get updates delivered right to your inbox!

Thank you for your subscription

×