cancel
Showing results for 
Search instead for 
Did you mean: 

JCO related error

Former Member
0 Kudos

hi ,

We are trying to run a application which uses swings as frontend and SAP R/3 system as a backend. The connection to R/3 is done by a JCO program written in java.

If the application is excecuted in a system where NDS is already installed it works fine.But it throws an error if there is no NDS installed in it.

The error while running the java appication is :

This error is shown in the alert box :

-


java.exe - Entry Point Not Found

-


The procedure entry point RfcDsrInit could not be located in the dynamic link library LIBRFC32.dll.

-


OK

-


and then when we say ok the following happens

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 [no sapjco

rfc in java.library.path]. java.library.path [C:\WINDOWS\system32;.;C:\WINDOWS\S

ystem32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PR

OGRA1\CA\SHARED1\SCANEN1;C:\PROGRA1\CA\ETRUST~1;c:\j2sdk1.4.2_03\bin;.;]

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

at birthday.SAPDAO.<clinit>(SAPDAO.java:52)

at birthday.Reminder.initialize(Reminder.java:43)

at birthday.Reminder.<init>(Reminder.java:39)

at birthday.Test2.<init>(Test2.java:74)

at birthday.Test2.main(Test2.java:714)

Can anyone suggest me where the problem is and how to rectify it.

Regards

Bharathwaj

Message was edited by: Bharathwaj R

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Put the librfc32.dll and sapjcorfc.dll in windows/system32 directory.

Former Member
0 Kudos

Hi,

this problem was discussed a lot in the forums. This error happens because the system cannot find the Jco libraries. Have a look at this to find out to solve the problem (steps 2 and 3 especially!)

Regards,

Ivo