COBOL2JAVA jobs like GLBDATAJ RPEPELLJ RPEDISBJ do not run- Exception in thread "main" java.lang.
The error may appear in the App Mgr output file (ie. o123.00) or in other job files, such as rpedisbj_4444.clg
Picked up JAVA_TOOL_OPTIONS: -Dlog4j1.compatibility=true
Exception in thread "main" java.lang.
at java.base/java.lang.Class.
at java.base/java.lang.Class.
at com.sct.messaging.bif.banner.
Caused by: java.lang.
at org.apache.logging.log4j.
at org.apache.logging.log4j.
at org.apache.logging.log4j.
at net.hedtech.common.
... 3 more
Release : 9.4.x
If Applications Manager (ie Automic) is using OpenJDK 11, these errors may occur. At this time Banner job submission supports Java 8, not Java 11.
Prior to running the Banner job, set JAVA_HOME to match the Java being used by job submission - gurjobs.
In this example, java 8 is in this directory - /etc/alternatives/java_sdk_1.
You can set JAVA_HOME in one of two places - either in
1. Banner Agent environment file (ie. $AW_HOME/Banner/TEST/TESTenv.
Add the following lines to the bottom of the file
# New cobol2java jobs not working with openjdk11 so setting java_home to match Banner java_home
JAVA_HOME=/etc/alternatives/
**Stop and restart the Banner Agent in order to pick up this change. From the Explorer Window - Agent Summary - Right click on the Banner Agent - Stop. Once stopped, then right click again - Start
OR
2. Edit Banner's $BANNER_HOME/general/misc/
Linux:
- Connect to the server as the 'banner' user
- Edit $BANNER_HOME/general/misc/
- Find these lines
JAVA_HOME=$JAVA_HOME
export JAVA_HOME
and edit similar to this, pointing to your java 8 home
# JAVA_HOME=$JAVA_HOME
# New cobol2java jobs not working with openjdk11 so setting java_home to match Banner java_home
JAVA_HOME=/etc/alternatives/
export JAVA_HOME
Windows:
Edit %BANNER_HOME%/general/misc/ban
Find the line:
$ENV{'JAVA_TOOL_OPTIONS'}=$
Add these additional lines to include your Java 1.8.x path
$ENV{'JAVA_TOOL_OPTIONS'}=$
$java_home="C:\\Program Files\\Java\\jdk1.8.0_321";
$ENV{'JAVA_HOME'}= $java_home;
$path="$java_home\\bin;
$ENV{'PATH'}";
$ENV{'PATH'}= $path;