One of hundreds of answers available with our premium content service.
A: The Java compiler is a program like any other and your operating system needs to know where to find the executable file. The simplest way to do this is to give the full path to the Java compiler in the command, as below for Windows...
… full answer hidden
Premium members click below for full answer
How do I set the compiler path?