at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at jp.ne.so_net.ga2.no_ji.jcom.IDispatch.<clinit>(IDispatch.java:288)
at com.cbh.jcom.util.methodImpl.JcomControlExcel.excelDownLoadPath(JcomControlExcel.java:25)
at com.cbh.als_system.test.Test.getPath(Test.java:13)
at org.apache.jsp.test_jsp._jspService(test_jsp.java:68)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
jcom的jar包已经导进去了,但是还是显示此异常,提示的意思是jar没有导进去,即没有找到相应的类。
把jcom.jar导入到项目lib中,jom.dll放到了jdk的bin目录下了,在myeclipse中jcom一切正常。
发布到tomcat中,出现java.lang.UnsatisfiedLinkError: no jcom in java.library.path错误
后来发现myeclipse中的tomcat的jre没有更新,重新设置jre路径(设为放有jcom.dll的jdk),问题解决。