Job execution using wrong JAVA version

book

Article ID: 188345

calendar_today

Updated On:

Products

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

Issue/Introduction

Job execution is using the JRE_WA version of JAVA instead of the System instance of JAVA which is different.
The user, configured in the job appears to grab the JRE_WA version by default and does not update even the job sets JAVA_HOME.

 

Environment

Release : 11.3.6

Component : CA Workload Automation System Agent

Resolution

The %JAVA_HOME% variable was set in the bat file.
However it was concatenated at the end of PATH statement while it should be upfront

set PATH=%JAVA_HOME%;%PATH%