Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tSapConnection error

Hi frinds;
I use :
- TOS 5.1
- Java version 1.7
- Windows 7
- I imported Sapjco3.jar using the Import option of the module view.
- Sapjco3.jar is locate in lib/Java directory.
I want to make a test connection to SAP. For this, I use the tSapConnection component. When I execut Job , I get the following error:
==========================================================================
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:421)
at com.sap.conn.jco.rt.DefaultJCoRuntime.registerNativeMethods(DefaultJCoRuntime.java:290)
at com.sap.conn.jco.rt.JCoRuntime.registerNatives(JCoRuntime.java:862)
at com.sap.conn.rfc.driver.CpicDriver.<clinit>(CpicDriver.java:947)
at com.sap.conn.rfc.engine.DefaultRfcRuntime.getVersion(DefaultRfcRuntime.java:41)
at com.sap.conn.rfc.api.RfcApi.RfcGetVersion(RfcApi.java:213)
at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:186)
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.setDestinationDataProvider(RuntimeEnvironment.java:117)
at com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(Environment.java:174)
at saptobo.saptobo_test_0_1.SapToBo_Test.tSAPConnection_1Process(SapToBo_Test.java:250)
at saptobo.saptobo_test_0_1.SapToBo_Test.runJobInTOS(SapToBo_Test.java:476)
at saptobo.saptobo_test_0_1.SapToBo_Test.main(SapToBo_Test.java:344)
Exception in thread "main" java.lang.Error: java.lang.NoClassDefFoundError: com.sap.conn.rfc.driver.CpicDriver
at saptobo.saptobo_test_0_1.SapToBo_Test.tSAPConnection_1Process(SapToBo_Test.java:298)
at saptobo.saptobo_test_0_1.SapToBo_Test.runJobInTOS(SapToBo_Test.java:476)
at saptobo.saptobo_test_0_1.SapToBo_Test.main(SapToBo_Test.java:344)
Caused by: java.lang.NoClassDefFoundError: com.sap.conn.rfc.driver.CpicDriver
at com.sap.conn.rfc.engine.DefaultRfcRuntime.createChannel(DefaultRfcRuntime.java:52)
at com.sap.conn.rfc.engine.RfcIoOpenCntl.open_channel(RfcIoOpenCntl.java:1260)
disconnected
at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcopen(RfcIoControl.java:85)
at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:83)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1107)
at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:659)
at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:103)
at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:171)
at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:44)
at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:160)
at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:754)
at com.sap.conn.jco.rt.RfcDestination.ping(RfcDestination.java:964)
at saptobo.saptobo_test_0_1.SapToBo_Test.tSAPConnection_1Process(SapToBo_Test.java:259)
... 2 more
===================================================================
Can you, please; Help me to résolve this erreur.
Thinks a lot.
Labels (3)
2 Replies
Anonymous
Not applicable
Author

Hi
Try these two ways to import this jar file.
1. Use tLibraryLoad to load this jar file in the beginning of one job.
2. Add a jar file as the following image by clicking on this button.
Regards,
Pedro
Anonymous
Not applicable
Author

Hi Pedro;
Thinks for your reply,
I have made your suggestions, unfortunately I still have the same run-time error.