Your Job needs libsapjco3.so and sapjco3.jar to be executed within Studio, the same libraries must be accessible by your JobServer, or any SAP Job execution fails with the following error message:
java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path
Modify the environment variables by adding the folder to the variable LD_LIBRARY_PATH and the sapjco3.jar in the CLASSPATH. For more information on environment variables, refer to your Linux and shell documentation.
Each time you start the JobServer, perform the following steps:
export LD_LIBRARY_PATH=/opt/utils/sap_jco_connector:$LD_LIBRARY_PATH export CLASSPATH=/opt/utils/sap_jco_connector/sapjco3.jar:$CLASSPATH
To avoid using the Temporary workaround above each time you want to start you JobServer, add the variable definitions to the user .bashrc script.
LD_LIBRARY_PATH=/opt/utils/sap_jco_connector CLASSPATH=/opt/utils/sap_jco_connector/sapjco3.jar export LD_LIBRARY_PATH export CLASSPATH
The .bashrc script is not taken into account when starting the JobServer as a service (and the service definition uses this user to start the JobServer). The easiest solution is to add the variable definitions in the service itself.
#ADDED FOR SAP Connection LD_LIBRARY_PATH=/opt/utils/sap_jco_connector:$LD_LIBRARY_PATH CLASSPATH=/opt/utils/sap_jco_connector/sapjco3.jar:$CLASSPATH export LD_LIBRARY_PATH export CLASSPATH