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
at com.ca.itpam.config.ConfigITPAM.main(ConfigITPAM.java:116)
<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.
Navigate to the location where ‘ConfigITPAM.sh’ file exists and run
‘./ConfigITPAM.sh’ which in turn invokes
#!/bin/sh
"$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