cancel
Showing results for 
Search instead for 
Did you mean: 

JCo Error in Linux System

venkatakrishna
Active Participant
0 Kudos

Hello All,

Please guide on below issue:

Trying to connect to an R/3 system to call a function module of ABAP using SAP JCo Connector on Linux

Successfully connected and executed on Windows Environment by downloading relevant SAPJCO dll files, but unable to execute the Java Servlet program on a Linux system even though the relevant .so files are placed in the /usr/lib folder as suggested. Java Servlet program unable to load the SAPJCO class provided in SAPJCo.jar file and the library even after the class and library path are set in environment variables.

Where do I place the libsapjco3.so file and .jar files on Linux System to execute my Servlet?

Thanks,

Venkat

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Make sure you have the correct distribution package

The directory is arbitrary but add the path to the LD_LIBRARY_PATH

Installation manual:

To install JCo for Linux copy the appropriate distribution package into an arbitrary directory {sapjco3-install-path}. Next, change to the installation directory:

    cd {sapjco3-install-path}   [return]

and extract the archive:

    tar zxvf sapjco3-linux*3.0.11.tgz   [return]

Then add {sapjco3-install-path} to the LD_LIBRARY_PATH environment variable.
Finally, add {sapjco3-install-path}/sapjco3.jar to your CLASSPATH environment variable.