Hi Astera Community,
I am trying to access the batch file (created for a java code) from the shared drive in Centerprise using the Run Program object, but I am getting the ‘java is not recognized as an internal or external command.’ error. Although, I can run the file through cmd and bash. How can I resolve this issue to access the batch file?
Hi,
The error occurs when the compiler cannot access the javac.exe
file. The issue resolves by configuring the environment variables, Java_Home
and Path
.
JAVA_HOME
must contain the path to java, and you should add %JAVA_HOME%\bin to PATH
If still the issue persist for the shared drive, provide the javac.exe
path in your batch file.
Attaching screenshot for your understanding.