cancel
Showing results for 
Search instead for 
Did you mean: 

SAP JCo Problem

Former Member
0 Kudos

Hi ,

i am using Windows 7 64 bit OS.

I want to Connect SAP from JAVA by using sap JCo Package(2.x).

So in my app i have added sapjco.jar file in lib folder and also added

sapjcorfc.dll file in lib folder and librfc32.dll file in System 32 folder.

so i am getting this type issue...i had researched a lot not able to find exactly.

Please give some suggestion..

Error 500: java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC' JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [sapjcorfc (Not found in java.library.path)]. java.library.path [D:\IBM\WebSphere\AppServer\java\jre\bin\compressedrefs;D:\IBM\WebSphere\AppServer\java\jre\bin;.;D:\IBM\WebSphere\PortalServer/lwo/prereq.odc/shared/app/oiexport;D:\IBM\WebSphere\AppServer\bin;D:\IBM\WebSphere\AppServer\java\bin;D:\IBM\WebSphere\AppServer\java\jre\bin;C:/Program Files (x86)/IBM/SDP/jdk/jre/bin/j9vm;C:/Program Files (x86)/IBM/SDP/jdk/jre/bin;C:/Program Files (x86)/IBM/SDP/jdk/jre/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\IBM\SDP;]

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

try to run procmon.exe (process monitor from www.sysinternals.com) in order to find out which DLL is searched where during startup of the J2EE engine.

regards

Peter

Former Member
0 Kudos
Former Member
0 Kudos

HI Roman

I have used Latest version jar file and dll file.

but still same issue,if i use RAD tool it is connecting to SAP.But i am using Netbeans IDE.

From this Console I have added sapjcorfc.dll and librfc32.dll in system 32 folder and windows folder.

and also msvcr72.dll and msvcp71.dll in windows folder bcoz of dependency( i Don't know but i added.)

Could not initialize dynamic link library sapjcorfc [C:\Windows\sapjcorfc.dll: Can't find dependent libraries]. java.library.path [C:\Program Files (x86)\Java\jdk1.6.0_26\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32;.]

Former Member
0 Kudos

As already mentioned check the following SAP KBA 1953762 - Hints for frequent installation errors with SAP Java Connector(JCo).

Former Member
0 Kudos

what is the output of procmon?? (see my post from yesterday)

Former Member
0 Kudos
Former Member
0 Kudos

Hi Kamil,

Thanks for ur reply but this links are not opening,i don't have  privileges..

Former Member
0 Kudos

Hi,

You need to have a valid s-user to be able to see those notes.

BR,

K.

bxiv
Active Contributor
0 Kudos

Have you verified that your environment variables are set correctly?  Have you also tried to manually set them for user and/or system?

Former Member
0 Kudos

Yeah i had set also,bbut it is not effected,same issue it is showing..