Applications Manager fails to start with a "wrong ELF class" error

Document ID : KB000100208
Last Modified Date : 05/06/2018
Show Technical Document Details
Issue:
The below error can be seen in the RmiServer.log or AgentService.log after Applications Manager fails to start up.

ErrorMsg: AwE-9999 Internal error
Details: nativecalls
java.lang.UnsatisfiedLinkError: $AW_HOME/c/libnativecalls.so: ld.so.1: java: fatal: $AW_HOME/c/libnativecalls.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
Resolution:
Make sure the $AW_HOME/c Java library files are set to use 32bit or 64bit depending on if Java is 32bit or 64bit.

If using 64-bit Java:
  1. cd $AW_HOME/c
  2. cp libnativecalls.so.64 libnativecalls.so
  3. cp libsapjcorfc.so.64 libsapjcorfc.so
  4. cp librfccm.so.64 librfccm.so

If using 32-bit Java:
  1. cd $AW_HOME/c
  2. cp libnativecalls.so.32 libnativecalls.so
  3. cp libsapjcorfc.so.32 libsapjcorfc.so
  4. cp librfccm.so.32 librfccm.so