Skip to Content
avatar image
Former Member

JCO 2.1.4

Hi,

I am facing a problem with my first JCO program. I am getting a dialog box with message 'MSVCR71.dll not found'. After seeing this dialog box for 5/6 times then javac is producing the following messages like

"

Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classIniti

alize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [C:\jdk_14

\jre\lib\ext\sapjcorfc.dll: Can't find dependent libraries]. java.library.path [

C:\jdk_14\bin;.;C:\WINDOWS\System32;C:\WINDOWS;C:\Infoprint;C:\PROGRA~1\RATIONAL

\RATION~1\NUTCROOT\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Utilitie

s;c:\windows;c:\windows\system32;C:\jdk_14\,C:\jdk_14\bin;;c:\windows;c:\windows\syste

m32;C:\jdk_14\,C:\jdk_14\bin;c:\dev;]

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

at MaterialList1.createConnection(MaterialList1.java:25)

at MaterialList1.<clinit>(MaterialList1.java:17)

"

I had an old librfc32.dll which I replaced with the latest from JCO pack. I am using the JCO 2.13 and Java 1.4. I am running on Windows XP but the JCO pack is for Windows 2000 and NT. Hope that will not be a problem.

Any help will be great.

Best Regards,

Ani

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 10, 2004 at 02:31 PM

    Do you have sapjcorfc.dll in the PATH? Looks like its not able to find this dll.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 15, 2005 at 10:38 AM

    Hello,

    I was confronted with the same problem as I installed JCO 2.1.4, but copying librfc32.dll and sapjcorfc.dll to \WINDOWS\SYSTEM32\did not help me fixing this error, neither in Eclipse nor in NetBeans.

    After comparing the system libraries of my colleagues (where JCO worked) with mine, I copied their msvc*.dll into my WINDOWS\SYSTEM32\ - folder and this helped!

    The files were the following:

    msvcr70.dll

    msvcp70.dll

    msvcp71.dll

    msvcr71.dll

    I hope this will also help you if you did not solve the problem up to now!

    Kind regards,

    Helmut Schulz

    Add comment
    10|10000 characters needed characters exceeded