Skip to main content

Python in Linux: SAP ERP – Error Message: SAP JCo library not found: verify the correct jar file is present

  • 4 September 2024
  • 0 replies
  • 4 views

Unix environments will always utilize the Java Connector (JCo) RFC API. This error message arises when needed files are either missing, or not added to the class path.  

The following files will be needed:  

  • sapjco3.jar  

  • libsapjco3.so.  

These can be downloaded from SAP’s software center. 

Both files must be placed in the same directory of your choice. Next, create or modify the config.ini file located in the CData folder of Python’s site packages (ex:/home/user/.local/lib/python3.10/site-packages/cdata). Finally, open the config file and add the JCo’s jar location to the class path (ex: CLASS_PATH=/home/user/Documents/sapjco3.jar). 

Full product documentation can be viewed here: 

https://cdn.cdata.com/help/RYK/py/pg_configuringdependenciesodbcpython.htm#connect-using-the-jco-jar-file 

Please reach out to [email protected] if this does not resolve the problem for you.