Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

SAP Connection fails - java.lang.UnsatisfiedLinkError: no sapjco3 in

Hi
I am using 32bit Java on 64bit Windows 7 Operating System.
I am running a SAP trial version 7.03 due to which I don't have access to SAP market place. Hence, I downloaded the SAP JCo related jar files and dll files from internet.
I have followed the instructions as provided here: https://help.talend.com/search/all?query=Setting+up+an+SAP+connection&content-lang=en
I am getting below error:
-------------------------------------------------------------------------------------------------------------------------------
starting job sapJobTest at 12:38 12/08/2013.

java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.sap.conn.jco.rt.DefaultJCoRuntime.loadLibrary(DefaultJCoRuntime.java:441)
at com.sap.conn.jco.rt.DefaultJCoRuntime.registerNativeMethods(DefaultJCoRuntime.java:307)
at com.sap.conn.jco.rt.JCoRuntime.registerNatives(JCoRuntime.java:980)
at com.sap.conn.rfc.driver.CpicDriver.<clinit>(CpicDriver.java:948)
at com.sap.conn.rfc.engine.DefaultRfcRuntime.getVersion(DefaultRfcRuntime.java:43)
at com.sap.conn.rfc.api.RfcApi.RfcGetVersion(RfcApi.java:254)
at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:199)
at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:73)
at com.sap.conn.jco.rt.JCoRuntimeFactory.<clinit>(JCoRuntimeFactory.java:23)
at com.sap.conn.jco.rt.RuntimeEnvironment.<init>(RuntimeEnvironment.java:40)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
connecting to socket on port 3576
connected
disconnected
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.sap.conn.jco.ext.Environment.getInstance(Environment.java:121)
at com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(Environment.java:216)
at esbdemos.sapjobtest_0_1.sapJobTest.tSAPConnection_1Process(sapJobTest.java:320)
at esbdemos.sapjobtest_0_1.sapJobTest.runJobInTOS(sapJobTest.java:634)
at esbdemos.sapjobtest_0_1.sapJobTest.main(sapJobTest.java:502)
Exception in thread "main" java.lang.ExceptionInInitializerError: Error getting the version of the native layer: java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path
at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:211)
at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:73)
at com.sap.conn.jco.rt.JCoRuntimeFactory.<clinit>(JCoRuntimeFactory.java:23)
at com.sap.conn.jco.rt.RuntimeEnvironment.<init>(RuntimeEnvironment.java:40)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.sap.conn.jco.ext.Environment.getInstance(Environment.java:121)
at com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(Environment.java:216)
at esbdemos.sapjobtest_0_1.sapJobTest.tSAPConnection_1Process(sapJobTest.java:320)
at esbdemos.sapjobtest_0_1.sapJobTest.runJobInTOS(sapJobTest.java:634)
at esbdemos.sapjobtest_0_1.sapJobTest.main(sapJobTest.java:502)
Job sapJobTest ended at 12:38 12/08/2013.
-------------------------------------------------------------------------------------------------------------------------------
Looking for solution. Thanks, Ram
Labels (3)
5 Replies
Anonymous
Not applicable
Author

Hi,
From the error "no sapjco3 in java.library.path", did you install the jar files, sapjco3.jar in the Java library of Talend Studio? How?
See related forum Forum 38408
Best regards
Sabrina
Anonymous
Not applicable
Author

You will need to add the sapjco*.dll file under C:\Windows\system32.
Thanks,
Anonymous
Not applicable
Author

Hi,
A KB article about TalendHelpCenter:Installing SAP Java Connector will be helpful for users who get such SAP connection issue.
Best regards
Sabrina
Sid3
Contributor III
Contributor III

What if the env is Linux. because i am getting same error while i am running the job in linux env. I copied the jar file to configuration\lib\java\folder.
As it is linux DLL copy is not required. Please let me know
Anonymous
Not applicable
Author

Hi  siddardh_ge,
You are still getting the same issue when  copy the jar file to configuration\lib\java\folder? Did you  install  {sapjco3.x-install-path}/sapjco3.jar  from  Modules  viewer?
Best regards
Sabrina