最近我在调用CA公司的jar包时出现一个很奇怪的问题,我的环境是spring+hibernate+tomcat 5.5,我用Eclipse启动tomcat,运行程序报出以下错误,
java.lang.UnsatisfiedLinkError: no gdca_jni in java.library.path
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
java.lang.Runtime.loadLibrary0(Runtime.java:822)
java.lang.System.loadLibrary(System.java:992)
com.gdcalib.GdcaLib. <clinit> (GdcaLib.java:13)
com.gdcalib.PSIApp. <init> (PSIApp.java:44)
com.yourcompany.struts.action.TempAction.execute(TempAction.java:41)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
而我直接启动tomcat 的startup.bat时就可能正常运行,请问为什么用Eclipse启动tomcat时就会出现问题呢,谢谢!
------解决方案--------------------
将jdk下tools.jar拷贝到tomcat的lib下