Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Cannot create client error with sample SAP JCO code

Hi,

I am encountering the following error when trying to connect to a R/3 system using the WAS 6.40 on my laptop. I have cut and pasted the Example1 code from the SAPJCO into my NetWeaver developer studio IDE.

java.lang.UnsatisfiedLinkError: no CpicNative 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.mw.rfc.api.RfcApi.initializeDLL(RfcApi.java:1285)

at com.sap.mw.rfc.api.RfcApi.<clinit>(RfcApi.java:1299)

at com.sap.mw.jco.MiddlewareJRfc.<clinit>(MiddlewareJRfc.java:228)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at com.sap.mw.jco.JCO.<clinit>(JCO.java:630)

at com.sap.mw.jco.support.JRfcTest.correctProperties(JRfcTest.java:1043)

at com.sap.mw.jco.support.JRfcTest.initCall(JRfcTest.java:1072)

at com.sap.mw.jco.support.JRfcTest.runConnectionTest(JRfcTest.java:735)

at com.sap.mw.jco.support.JRfcTest.main(JRfcTest.java:202)

Cannot create client, error message:

java.lang.NoClassDefFoundError occured:

Message:null

I have a system user defined in R/3 but still this isn't working. I am new to Java so any light you could shed would be greatly appreciated.

Cheers and TIA,

Rich

Former Member
Not what you were looking for? View more on this topic or Ask a question