Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

redhat problems finding sapjco

Former Member
0 Likes
618

Hi all,

after setting LD_LIBRARY_PATH and copying the libraries librfccm.so und libsapjcorfc.so and the sapjco.jar into the correct folders, the Application is not able to find or open the libraries. (but there are in the listed folder of error-log)

Please have a look at the following message:

[02.03.07 16:24:42:874 CET] 00000035 SystemErr R 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 [/usr/lib/libsapjcorfc.so: libstdc++-libc6.2-2.so.3: cannot open shared object file: file or folder not found]. java.library.path [/app/WebSphere/AppServer/java/jre/bin:/app/WebSphere/AppServer/java/jre/bin/classic:/app/WebSphere/AppServer/java/jre/bin:/app/WebSphere/PortalServer/IBMTrans/bin/sparc_SunOS:/app/WebSphere/PortalServer/IBMTrans/bin/x86_Linux:/app/WebSphere/PortalServer/shared/app/oiexport:/app/WebSphere/AppServer/java/jre/bin:/app/WebSphere/AppServer/java/jre/bin/classic:/app/WebSphere/AppServer/java/jre/bin:/app/WebSphere/sapjco:/app/WebSphere/AppServer/bin:/opt/mqm/java/lib:/opt/wemps/lib:/home/db2home/db2inst1/sqllib/lib:/usr/lib]

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

Has anybody seen this behavieor before??

Please help.

Andre

2 REPLIES 2
Read only

Former Member
0 Likes
435

reinstall gcc packages and the libraries will be red. This solved the problem.

Read only

0 Likes
435

Installing gcc doesn't guarantee all needed libs are installed.

If you're on debian, ubuntu, or a similar OS, you can google for the following phrases and it should show up in some repo.

libstdc++2.10

glibc2.2

specifically, getting and installing the following .deb file worked for me:

libstdc++2.10-glibc2.2_2.95.4-24_i386.deb

The end result is having libstdc++-libc6.2-2.so.3 put in /usr/lib

This should also fix messages that say:

error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory

Good luck. I hope this helps.

Edited by: Chuck Norris5555 on Oct 27, 2010 9:10 PM