When trying to run AAI reports via the cli from Autosys, we are getting the error below
Can't exec "java": No such file or directory at /<install dir>/batch/run.pl line 47.
Line 46 & 47 in run.pl is:
# run the CLI
Release : 6.0.1
Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE
Error indicates JAVA_HOME is likely not set for the autosys user.
Depending on your environment, you may need to update the /home/autosys/.bashrc or similar to set the JAVA_HOME variable.
First attempt to run the command locallly with root to ensure there are no issues with your cli syntax, then verify the Autosys user has JAVA_HOME set and can run java commands from any directory.