Can't exec "java": No such file or directory for AAI cli reports

book

Article ID: 212044

calendar_today

Updated On:

Products

Automic Automation Intelligence

Issue/Introduction

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

Environment

Release : 6.0.1

Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE

Resolution

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 varaible below is an example.

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.