G
gfonline
Unregistered / Unconfirmed
GUEST, unregistred user!
我用delphi写了一个Dll,然后在Java里面调用,在一台机器上已经可以调用了,现在我放到另外一台机器上怎么也调不起来,老是报这样的错误:
java.lang.UnsatisfiedLinkError: D:/Tomcat 5.0/bin/JavaInterface.dll: Can't find dependent libraries
java.lang.ClassLoader$NativeLibrary.load(Native Method)
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
java.lang.Runtime.loadLibrary0(Runtime.java:788)
java.lang.System.loadLibrary(System.java:834)
org.hgcs.service.GetClientIp.<clinit>(GetClientIp.java:16)
org.hgcs.service.HgwebManagerImp.getTxClientIp(HgwebManagerImp.java:936)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
$Proxy1.getTxClientIp(Unknown Source)
org.hgcs.struts.LoginAction.execute(LoginAction.java:42)
org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.hgcs.struts.MyActionServlet.process(MyActionServlet.java:13)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
我的Dll已经放在了D:/Tomcat 5.0/bin下了,这个Dll里面所要调用其它的DLl也都放在这个目录下,就是不行,搞了好几天了郁闷死了,Tomcat重装过也不管用,
在系统的path里面是这样设置的 %JAVA_HOME%/jre/bin;%JAVA_HOME%/bin;%JAVA_HOME%/lib;%JAVA_HOME%/jre/lib;%SystemRoot%/system32;%SystemRoot%;%SystemRoot%/System32/Wbem;C:/Program Files/Microsoft SQL Server/80/Tools/BINN;D:/Borland/Delphi6/Bin;D:/Borland/Delphi6/Projects/Bpl;D:/Tomcat 5.0/bin
CLASSPATH
:%JAVA_HOME%/lib/;%JAVA_HOME%/lib/dt.jar;%JAVA_HOME%/lib/tools.jar;%CATALINA_HOME%/common/lib/servlet.jar;%JAVA_HOME%/lib/msbase.jar;%JAVA_HOME%/lib/mssqlserver.jar;%JAVA_HOME%/lib/msutil.jar;D:/Tomcat 5.0/bin;D:/Tomcat 5.0/webapps/axis/WEB-INF/lib/axis.jar
我实在想不出还有什么其它的原因了,大家救救我吧,高手分析分析吧。
java.lang.UnsatisfiedLinkError: D:/Tomcat 5.0/bin/JavaInterface.dll: Can't find dependent libraries
java.lang.ClassLoader$NativeLibrary.load(Native Method)
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
java.lang.Runtime.loadLibrary0(Runtime.java:788)
java.lang.System.loadLibrary(System.java:834)
org.hgcs.service.GetClientIp.<clinit>(GetClientIp.java:16)
org.hgcs.service.HgwebManagerImp.getTxClientIp(HgwebManagerImp.java:936)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
$Proxy1.getTxClientIp(Unknown Source)
org.hgcs.struts.LoginAction.execute(LoginAction.java:42)
org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.hgcs.struts.MyActionServlet.process(MyActionServlet.java:13)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
我的Dll已经放在了D:/Tomcat 5.0/bin下了,这个Dll里面所要调用其它的DLl也都放在这个目录下,就是不行,搞了好几天了郁闷死了,Tomcat重装过也不管用,
在系统的path里面是这样设置的 %JAVA_HOME%/jre/bin;%JAVA_HOME%/bin;%JAVA_HOME%/lib;%JAVA_HOME%/jre/lib;%SystemRoot%/system32;%SystemRoot%;%SystemRoot%/System32/Wbem;C:/Program Files/Microsoft SQL Server/80/Tools/BINN;D:/Borland/Delphi6/Bin;D:/Borland/Delphi6/Projects/Bpl;D:/Tomcat 5.0/bin
CLASSPATH
:%JAVA_HOME%/lib/;%JAVA_HOME%/lib/dt.jar;%JAVA_HOME%/lib/tools.jar;%CATALINA_HOME%/common/lib/servlet.jar;%JAVA_HOME%/lib/msbase.jar;%JAVA_HOME%/lib/mssqlserver.jar;%JAVA_HOME%/lib/msutil.jar;D:/Tomcat 5.0/bin;D:/Tomcat 5.0/webapps/axis/WEB-INF/lib/axis.jar
我实在想不出还有什么其它的原因了,大家救救我吧,高手分析分析吧。