Error :”Fatal initialization error. wrong ELF class” when starting SAP Collector

If the SAP collector fails to start with the below error in the collector.log file in the collector installation directory.

Error: SEVERE r3collector [main] Fatal initialization error. R3 Collector will terminate.

java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer ‘’ JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [/opt/MercuryDiagnostics/Collector/nanny/solaris/bin/libsapj java: fatal: /opt/MercuryDiagnostics/Collector/nanny/solaris/bin/libsapjc wrong ELF class: ELFCLASS64

Collector is installed on a 64bit Solaris machine and pointed to a 64bit SAPJco driver due to which this error occurs.

Verify that the JCO driver is a 32 bit version. Switch to a 32bit JCO driver for the SAPJco. The collector for Solaris was compiled on a 32bit machine, so the connecting drivers should be 32bit as well. The
collector and 32-bit SAPJco will work on the 64bit environment.

Leave a Comment