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

book

Article ID: 3917

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) CA Workload Automation Agent

Issue/Introduction

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.

Cause

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

Environment

Autosys and System Agent release 11.0 on Windows.

Resolution

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