SAP JCo V2 Connector Fails with "JCo initialization failed" or "no sapjco3 in java.library.path"


Problem

When testing the SAP JCo V2 connector, one or more of the following errors may occur:

Browse operation failed; Caused by: JCo initialization failed with java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path
Browse operation failed; Caused by: Could not initialize class com.sap.conn.jco.JCo

These errors occur even after the JAR files have been uploaded to Account Libraries, the Custom Library has been created and deployed, and a runtime restart has been performed.

Cause

The SAP JCo V2 connector requires two separate setup steps that are both necessary for the connector to function:

  1. JAR files uploaded via Account Libraries — sapjco3.jar and sapidoc3.jar at minimum. If you intend to receive IDocs from the SAP system in Listen operations, a JDBC driver for TID management is also required, as the connector needs database access to track SAP-generated Transaction IDs (TIDs). These files are then deployed through a Custom Library component in Boomi.
  2. Native library file placed at the OS level — A platform-specific native library file must be manually placed into the SAP JCo V2 sub-directory under [AtomRoot]/userlib/ on the runtime's host server. Refer to the official Boomi documentation linked in the Solution section below for the exact sub-directory path. The correct native library file depends on the runtime's operating system and processor architecture:

The errors above occur when the native library file is missing, is the wrong file for the OS, or is incorrect for the processor architecture. A common example is uploading a Windows .dll file to a Linux-based runtime, which will always fail regardless of other configuration steps.

Additionally, if duplicate copies of the library files exist in multiple locations on the runtime — such as in both account-specific subdirectories and the shared cloud directory — this can also cause initialization failures. Only one copy should exist, in the correct path.

Note: For runtimes hosted on Boomi Managed Cloud Service (MCS), customers do not have direct OS-level access to place the native library file. In these cases, the file placement must be performed by the Boomi MCS team. Please open a support case and attach the correct native library file for your runtime's operating system and architecture. 

The file placement must be located in the customer's account directory path.  For example, for a customer's non-production cloud account MCS_TEST_ACCT, the jar files and .so file location would be similar to /mnt/shared/Cloud_MCS_Test_Cloud/accounts/<AttachmentInstanceID>/userlib/<connector_type>, where <AttachmentInstanceID> is the specific Attachment Instance ID, displayed on the Runtime Information panel, and the <connector_type> for SAP JCo V2 would be officialboomi-X3979C-jcov2s-prod.

Solution

Step 1: Complete the Account Libraries and Custom Library setup

If not already done, follow the Boomi documentation to:

  1. Upload sapjco3.jar, sapidoc3.jar, and any required JDBC driver (for Listen operations only) to Setup > Account Libraries.
  2. In the Build tab, create a new Custom Library with type Connector and select SAP JCo as the connector type.
  3. Add the uploaded JAR files to the Custom Library and save.
  4. In the Deploy tab, deploy the Custom Library to the environment containing your target runtime.

Step 2: Identify the correct native library file for your runtime

Before placing the native library file, confirm the operating system and processor architecture of the runtime host server. Download the correct native library from the SAP Support Portal. Access requires a valid S-user ID with appropriate authorization — contact your SAP administrator if needed.

Available builds include:

Important: Using a .dll file on a Linux runtime or downloading the wrong Linux architecture build will result in the same initialization error. Confirm the architecture before proceeding.

Step 3: Place the native library file in the correct directory

Place the native library file directly into the SAP JCo V2 sub-directory under [AtomRoot]/userlib/ on the runtime host or under the shared [MCS Cloud/account/AttachmentInstanceID]/userlib directory/folder. The exact sub-directory path is provided in the official Boomi documentation linked at the end of this section.

Ensure no duplicate copies of the file exist in other subdirectories along the same path. If duplicates are found, remove them and retain only the file in the documented path.

Step 4: Restart the runtime

A full runtime restart is required after placing the native library file for the changes to take effect. The connector will not initialize correctly until the runtime has been restarted.

Step 5: Test the connector

Once the restart is complete, test the SAP JCo V2 connector connection. A successful test confirms the native library was placed correctly.

For full setup documentation, refer to: Loading SAP Java Connector Libraries into a Runtime or Runtime Cluster

Prevention

Before beginning the SAP JCo V2 setup, confirm the operating system and processor architecture of the target runtime to ensure the correct native library file is downloaded from SAP. Placing a mismatched native library is the most common cause of the initialization errors described in this article and requires a restart to recover from once corrected.

Video reference: https://www.youtube.com/watch?v=zFI_8JExJMw