日期:2014-05-16  浏览次数:21204 次

linux下安装sap jco 报如下的错,求大神看下什么错
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 [/app/weaver/jdk1.6.0_27/jre/lib/amd64/libsapjcorfc.so:
 libstdc++.so.5: cannot open shared object file: No such file or directory].
 java.library.path [/app/weaver/jdk1.6.0_27/jre/lib/amd64/server:/app/weaver/jdk1.6.0_27/jre/lib/amd64:/app/weaver/jdk1.6.0_27/jre/../lib/amd64:/app/weaver/Resin-3.1.8/libexec64:/app/weaver/jdk1.6.0_27/jre/lib/amd64/server:/app/weaver/jdk1.6.0_27/jre/lib/amd64:/app/weaver/jdk1.6.0_27/jre/../lib/amd64:/app/weaver/Resin-3.1.8/libexec64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
 at com.sap.mw.jco.JCO.<clinit>(JCO.java:871)
 at _jsp._testsapcon__jsp._jspService(testsapcon.jsp:26)
 at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
 at com.caucho.jsp.Page.pageservice(Page.java:578)
 at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:195)
 at weaver.filter.PFixFilter.doFilter(PFixFilter.java:79)
 at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
 at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
 at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
 at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)
 at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)
 at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:730)
 at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:649)
 at java.lang.Thread.run(Thread.java:662) 
------解决方案--------------------
No such file or directory