We are trying to execute configITPAM.sh script in order to configure Remedy with Process Automation but the script fails with following error.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
<Please see attached file for image>
The error message is very generic that can occur due to various reasons but the major reason identified as the usage of incorrect version of Java to
invoke the script.
BMC remedy running on *nix.
Navigate to the location where ‘ConfigITPAM.sh’ file exists and run
‘./ConfigITPAM.sh’ which in turn invokes
"$JAVA_HOME/java" -cp ConfigITPAM.jar com.ca.itpam.config.ConfigITPAM
So, as an alternative following command can also be executed to start the configuration.
java" -cp ConfigITPAM.jar com.ca.itpam.config.ConfigITPAM
Note: 1. ConfigITPAM.sh script requires X display variable
2. JAVA_HOME variable should be set to reflect the correct version of Java