Skip to Content
avatar image
Former Member

Could not initialize dynamic link library sapjcorfc

Hello Experts!

I'm using JCO SAP Java Connector 2.1.2

with JDK 1.4.2. I also follow the instruction with

"Copy the librfc32.dll file from your JCo root directory to

C:\WINNT\SYSTEM32"

My existing librfc32.dll' has 5050 KB

and JCO librfc32.dll is 7493 KB. After copying librfc32.dll

into C:\WINNT\SYSTEM32 I can't start my SAP-Logon. I get the

error message "Entry Point Not Found". Java Code seems to be

properly as well. What is wrong with JCo and librfc32.dll

Regards

Ilhan

[code]

C:\pro>java Run

Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError:

JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.Middlew

areRFC' JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc

[no sapjcorfc in java.library.path].

java.library.path [C:\WINDOWS\system32;.;C:\WINDOWS\system32;C:\WINDOWS;

C:\Program Files\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;

C:\WINDOWS\System32\Wbem;C:\Program Files\IBM\Infoprint Select;C:\Notes;

C:\Program Files\XLView;C:\lotus\compnent;C:\Utilities;

C:\Program Files\IBM\Personal Communications\;

C:\Program Files\IBM\Trace Facility\;

C:\Program Files\ThinkPad\ConnectUtilities;

C:\WINDOWS\Downloaded Program Files;

C:\Programme\jdk142\bin]

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

at GetCompanycodeList.ConnectToSap(GetCompanycodeList.java:99)

at GetCompanycodeList.actionPerformed(GetCompanycodeList.java:81)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour

ce)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)[/code]

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 06, 2007 at 10:51 AM

    Hi,

    What about sapjcorfc.dll version? Is it the same with librfc32.dll?

    Regards,

    Bar&#305;&#351;

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 06, 2007 at 11:27 AM

    hi of course I did (almost one million times)

    I still have the same problem.

    regards

    Ilhan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Then I'm assuming that sapjcorfc.dll is inside system32 folder and still giving the same error after restart etc.

  • avatar image
    Former Member
    Aug 06, 2007 at 11:00 AM

    Hi

    I have extracted all from the original JCo archive. But I didn't yet copied

    "sapjcorfc.dll" anywhere else. Is that necesarry ? If yes where ist the

    corrextly direction for "sapjcorfc.dll"

    Regards

    Ilhan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 06, 2007 at 11:56 AM

    Dear Baris your assumption is correctly. In the meantime I have

    solved the problem by myself.

    In such cases it is very uselful having of deep java knowledges.

    Here is the solution:

    Just use JVM parameter like:

    -Djava.library.path=C:\....;.;C:\.......

    Regards.

    Ilhan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I just had the same problem and found that I had an older version earlier in my path. It happened to be in my java/bin directory, don't ask me why. Just a heads up for anyone else that might have the same problem. Double check all the directories in the path.