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

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.

Autosys and System Agent release 11.0 on Windows.

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


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