When I launch a Java program in from my script, it does not run properly.

Document ID : KB000003917
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

On a Windows Remote Agent, we want to schedule a dos batch file .bat that launches a java program but with Autosys the java program doesn't start. When we schedule this dos batch file in Windows scheduled tasks, the java program starts.

Environment:
Autosys and System Agent release 11.0 on Windows.
Cause:

The remote agent was not able to resolve relative paths passed as arguments to the main script.

Resolution:

Use absolute PATHs instead of relative PATHs everywhere in the .bat file so the Java program can start successfully.