cancel
Showing results for 
Search instead for 
Did you mean: 

JCO.classInitialize Error

Former Member
0 Kudos

Hi Profs!

I try to establish a connection with JCO RFC.

At the folowing line i get an Internal Server Error

JCO.Client con = JCO.createClient("client","user","password","EN","host","00");

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 [C:\j2sdk1.4.2_12\jre\bin\server;

C:\j2sdk1.4.2_12\jre\bin;

C:\j2sdk1.4.2_12\bin;

C:\usr\sap\J2E\JC00\j2ee\os_libs;

c:\sapdb\programs\bin;

c:\sapdb\programs\pgm;

C:\WINDOWS\system32;

C:\WINDOWS;

C:\WINDOWS\System32\Wbem;

C:\usr\sap\J2E\JC00\exe;

C:\usr\sap\J2E\SYS\exe\run]

the Library(sapjco.jar) is imported from eclipse\plugins\com.sap.mw.jco\lib

the Library(sapjcorfc.dll) exists at eclipse\plugins\com.sap.mw.jco\lib

the librfc32.dll exists at Windows\System32

I read on another Forum, that i don't need set the java.library.path for sapjcorfc, when it exists at the same place like sapjco.jar.

I'm confused about this Error.

Have anybody an idea to solve this error?

Regards Waldemar!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Download the correct version of JCo from service marketplace instead of using the files available in NWDS installation.

copy the dll files in SYSTEM32 from the download.

also check if you have any conflicting versions of the DLLs anywhere on the path..

Former Member
0 Kudos

Hi Amol Joshi!

Thanks for fast reply.

I solved this Problem on this way:

I downloaded JCO Connector(v 2.0.5) from Service Marketplace and replaced my JCO connector (v 2.0.0), followed the installation guide and the Problem was solved.

The installation guide for JCO Connector also says that yo must set the PATH Variable to the sapjcorfc.dll

Regards

Waldemar Schäfer

Answers (0)