cancel
Showing results for 
Search instead for 
Did you mean: 

Could not initialize dynamic link library sapjcorfc

Former Member
0 Kudos

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]

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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

Regards,

Bar&#305;&#351;

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi &#304;lhan,

That's good to hear that your problem is solved. Can you mark the question as answered?

Regards,

Bar&#305;&#351;

Former Member
0 Kudos

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.

Former Member
0 Kudos

hi of course I did (almost one million times)

I still have the same problem.

regards

Ilhan

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi again,

Did you apply <a href="http://help.sap.com/saphelp_nw04/helpdata/en/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm">this help page</a>