Javac Is Not Recognized As An Internal Or External Command

Asked By 0 points N/A Posted on -
qa-featured

While trying to compile my program in command prompt I used the command javac and the system is not able to compile that code. The error comes as javac is not a recognized command. What should I do to solve this error?

SHARE
Answered By 20 points N/A #318575

Javac Is Not Recognized As An Internal Or External Command

qa-featured

If you encounter the message, Windows can’t find javac.

You can show the path where Javac exists. For example, you might have kept JDK to C: \ jdk1.8.0. In the order, then try executing this command: “C: \ jdk1.8.0 \ bin \ javac MyQuestion.java”.If you are doing this then, you must first enter your C: \ jdk1.8.0 \ bin \ Java (path) whenever you install or manage a program. To avoid this writing of code, set the PATH variables.

Class name, MyQuestion, only accepts if the advertising of the information is clearly requested.

If you receive this error message, you forget to specify that suffix when the program is compiled. Remember that javascript order is MyQuestion.java, not MyQuestion javac.

Related Questions