on 02-22-2006 1:19 PM
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. 😃
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.