SAP com.sap.mw.jco.rfc.MiddlewareRFC

1
+1
-1

Hey friends im working in a process, and I´m trying to get a result by a SAP BAPI, but i really have problems trying to install the sapjco.jar...

I been reading many questions, articles and answers about it, but no ones cant helpme, i have the connector details and i followed the steps by the SAP JCo 2 documentation to install the library, but when i test the conection i get this problem message:

Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [C:\Windows\System32\sapjcorfc.dll: Can't find dependent libraries]. java.library.path [C:\BonitaBPMCommunity-6.4.0\jre\bin........]

I´m really so confused about the way to install this library on Windows 7 and bonitaSoft Studio 6.4

whats the correct way to install this library on bonitaSoft comunnity.. ¿? i followed the next steps

1) I Unziped the contents of the .zip sapjco-ntintel-2.1.9.zip in c:/ (result : C:\sapjo 2.1.9) 2) I copied librfc32.dll to System32 3) I added a PATH environment variable .Result (Path......;C:\sapjo 2.1.9) 4) Add a CLASSPATH environment variable. Result (CLASSPATH.....;C:\sapjo 2.1.9\sapjco.jar;) 5) i´m Bonita Communty so i COPIED sapjco.jar in bonita_home/endorsed 6) reload bonitaSoft and import the sapjco.jar by "manage jars" i selected the C:\sapjo 2.1.9\sapjco.jar

i been reading sapjcorfc.dll must be installed in the System32 directory and i did too, but this not works, i'll be so grateful if u can help me.

Comments

Submitted by Sean McP on Tue, 04/07/2015 - 07:57

There are probably several things wrong here but the big give-away is:

5) I have not licence

I read this as I do not have a license for the SAP client...please correct me if I'm wrong.

Which probably doesn't help. If you are doing this as a development for a company then I would ask them for a valid licensed copy of the software so you can use it correctly.

You probably need to INSTALL the SAP software to get all the correct modules in place so they will also be registered in the Windows workspace.

Apart from that I doubt anyone can be of assistance due to the use of unlicensed third party software.

Submitted by gerardo.rivera.ext on Tue, 04/07/2015 - 14:09

Hey @Sean McP thanks in advance for ur help, when I wrote "i have not license so i COPIED sapjco.jar in bonita_home/endorse" I was talking about BonitaSoft I'm community version and the SAP JCo2 documentation says : if u're Community version U must Copy the sapjco.jar to bonita_home/endorsed (Sorry for this confuse step). SAP license is ok on my case, I downloaded the library by the SAP connectors web page as the documentation says.

Submitted by Sean McP on Tue, 04/07/2015 - 14:35

Try this:

Remove the sapjcorfc.dll from the system32 directory in windows and copy it into the lib folder of your project individually. The sapjcorfc.dll needs to be in the same directory as sapjco.jar.

You may ant to try moving both to Tomcat/lib as well rather than Bonita_home/endorsed

also make sure your using the correct one 32/64 bit

regards

Submitted by gerardo.rivera.ext on Tue, 04/07/2015 - 23:52
2 answers

1
+1
-1
This one is the BEST answer!

Hey @Sean McP it works, after follow your instructions I had the same problem with the SAP connection test , so I been reading about this mistake and i found a solution that maybe can help other persons,

The problem starts here :

sapjcorfc.dll: Can't find dependent libraries

sapjcorfc.dll is trying to found some dependent libraries on System32, I found some program to helps to know which dependent libraries sapjcorfc.dll is trying to found.

you can dowload the program here : http://www.dependencywalker.com/

you only need to select the sapjcorfc.dll and the program show wich dependent libraries dont exist. Dowload the dependent libraries and install on System32 and eureka . will works

on my case the dependent libraries were MSVCR71.DLL & MSVCP71.DLL


Note :

1) if ure community versión, you dont need to export the .jar on bonitasutudio its will work ok without select any dependecy. 2) put the .jar & sapjcorfc.dll in tomact / lib they need to be in the same directory.

best regards and thanks so much @Sean McP

1
0
-1

This sounds like the API cannot load the native driver files. The SAP Java Connector consists of a native runtime part, that does the actuall communication and a Java API that wraps this functionality with a java api. The Java API is inside the sapjco.jar and the native drivers are e.g on windows inside librfc32.dll and sapjcorfc.dll. Place these dll's into your system path (e.g. windows: C:\WiNDOWS\system32) and it should run.

Regards,
Ankit Khanna
Enterprise Mobility Management Expert

Notifications