cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Problem

Former Member
0 Kudos

Hi Guys,

Im encountering this kind of problem and I read a lot of solutions but still the error exist.

Here's the problem:

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 [C:\Program Files\IBM\WebSphere Studio\Application Developer IE\v5.1.1\eclipse\jre\bin\sapjcorfc.dll: Can't find dependent libraries]. java.library.path [C:\Program Files\IBM\WebSphere Studio\Application Developer IE\v5.1.1\eclipse\jre\bin;.;C:\WINDOWS\System32;C:\WINDOWS;C:\Program Files\IBM\WebSphere Studio\Application Developer IE\v5.1.1\eclipse\jre\bin;C:\PROGRA1\PVCS75\vm\win32\bin;C:\PROGRA1\PVCS75\vm\common\bin\win32;C:\program files\notes\;C:\data\notes\;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Support Tools\;c:\program files\winzip;c:\data\notes;c:\program files\notes]

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

at MaterialList.main(MaterialList.java:22)

Exception in thread "main"

I already put the files need on the proper folder but still it does'nt work.

Can anyone help me specify the right folder and the right file that should be inside that folder. I have the follwing files:

- librfc32.dll

- sapjco.jar

- sapjcorfc.dll

Also, can you give me the exact path with value in the environment variable.

Thank you very very much in advance. 😃

Accepted Solutions (0)

Answers (1)

Answers (1)

kishorg
Advisor
Advisor
0 Kudos

Hi Christian,

just go through this forum ....

this contains exact solution.

refer what i have written (in solved problem section).

and u have to copy the DLL files in the windows/system32 folder.

Regards

Kishor Gopinathan

Message was edited by: Kishor Gopinathan

Former Member
0 Kudos

I already added all the needed dll and jar file in the folders you mentioned but I still encountering the same problem...

How do you set the path? or classpath in environment variable?? heheheeh.. thanks..

Former Member
0 Kudos

Hi Christian,

Setting the CLASSPATH and PATH variable depend on the Operating System you are using. Is this a Windows machine? if so, go to System Properties, Advanced, Environment Variables and create new system variables.

You can check if they are currently set by opening a command prompt and typing "SET" which will give you a list of all environment variables and their values.

HTH,

Jonathan

kishorg
Advisor
Advisor
0 Kudos

Hi Chrisian,

Which type of application have u created ?.

IS it just a console application(contain main) or J2EE project in NWDS?.

if it is a console application ,u can set it from the command prompt itself.

-


here u have to set path for the sapjco.jar file only.

for sapjco.jar ...

eg-: if this is in ur C:\sapjco.jar , u can set the path in console like this..

in command prompt u have to set --

--> set classpath=%classpath%;c:\sapjco.jar;

In NWDS - > just remove the already path that is already there..

then add external jar file --> here select the file in C:\

from where u got the sapjco.jar and the associated DLLs.

are u sure , they are compatible as i mentioned ?.

Regards

Kishor Gopinathan

Message was edited by: Kishor Gopinathan