libstdc++-libc6.2-2.so.3: cannot open shared object file
Problem:
“Exception in thread “main” 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/local/ConectorSAPJava/libsapjcorfc.so: libstdc++-libc6.2-2.so.3: cannot open shared object file:
No such file or directory]. java.library.path ..”
Solution:
# rpm -ivh compat-gcc-7.3-2.96.128.i386.rpm
# rpm -ivh compat-libstdc++-7.3-2.96.128.i386.rpm
# rpm -ivh compat-libstdc++-devel-7.3-2.96.128.i386.rpm
# find / -name libstdc++-libc6.2-2.so.3
/usr/lib/libstdc++-libc6.2-2.so.3