cancel
Showing results for 
Search instead for 
Did you mean: 

Could not initialize dynamic link library sapjcorfc [no sapjcorfc in java.l

Former Member
0 Kudos

When i run my j2ee application using Jco i have this error. I have put the file librfc32.dll in windows\system32 folder and I have icluded in my project the sapjco.jar. Help me please.Thanks

Details: 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 [no sapjcorfc in java.library.path]. java.library.path [/opt/java1.4/jre/lib/IA64W:/opt/java1.4/jre/lib/IA64W/server:/opt/java1.4/jre/../lib/IA64W:/usr/sap/NPD/JC20/exe::/usr/sap/NPD/JC20/exe:/usr/sap/NPD/JC20/exe:/tmp/sapinst_exe.18567.1178531206:/usr/sap/NPD/SYS/exe/run:/oracle/client/10x_64/instantclient:/usr/lib:/usr/sap/NPD/JC20/j2ee/os_libs:/usr/sap/NPD/JC20/exe:]

Exception id: [0017A4AB008F005D000000ED0000051300045BA6791EE859]

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Andrea<BR/><BR/>

If you are getting this error it means you JVM is not able to find sapjcorfc.dll copy this dll to windows/system32 directory.<BR/><BR/>Note: If you are using sapjco 3.0.0 copy sapjco3.dll else if sapjco <= 2.1.8 copy both librfc32.dll & sapjcorfc.dll<BR/><BR/>