SAP Java Connector (SAP JCo) Error

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

Description:

SAP Java Connector (JCo) Error "SAP ERROR: Connecting - Unexpected Problem: JCO.classInitialize: Could not load middleware layer com.sap.mw.jco.rfc.MiddlewareRFC JCO.nativeInit: Could not initialize dynamic link library sapjcorfc [<installdir>/libsapjcorfc.sl: specified file is not a shared library, or a format error was detected.]".

Solution:

The error indicates SAP Java Connector (JCo) initialization problem is caused by one of the following:

  1. JCo was not installed correctly

  2. Some JCo files are corrupted

  3. Wrong version of JCo was installed

  4. JCo files are not visible because of file permissions

In order to resolve the problem;

  1. Remove the existing SAP JCo installed and install the correct version for the Operating System. The minimum required version of SAP JCo for SAP 5.1 SP1 Agent is SAP JCo 2.1.8, SAP JCo 3.0.x is not supported (refer to 'Installing the SAP Java Connector (SAP JCo)' in CA Workload Automation Business Agent for SAP, Release 5.1 SP1, Installation and Setup Guide, for more information).

  2. Check the SAP JCo files for permissions granted.