线程“main”java.lang.UnsatifiedLinkError中出现异常:*****(Lnet/sf/jni4net/inj/IClrProxy;)V-->jni4net

线程“main”java.lang.UnsatifiedLinkError中出现异常:*****(Lnet/sf/jni4net/inj/IClrProxy;)V-->jni4net,java,eclipse,jni4net,Java,Eclipse,Jni4net,我使用jni4net并创建了一个j4n.dll和一个j4n.jar。当我尝试使用一个新按钮(如issltcplient ssltcplient=new sslTcpClient)实例化一个对象时,eclipse理解导入;我得到一个错误,如下所示: 主线程java.lang.UnsatifiedLinkError中出现异常:firstdata.icvtnsclient.SslTcpClient.\uu\uu actorSSLTCPClient t0Lnet/sf/jni4net/inj/IClrP

我使用jni4net并创建了一个j4n.dll和一个j4n.jar。当我尝试使用一个新按钮(如issltcplient ssltcplient=new sslTcpClient)实例化一个对象时,eclipse理解导入;我得到一个错误,如下所示:

主线程java.lang.UnsatifiedLinkError中出现异常:firstdata.icvtnsclient.SslTcpClient.\uu\uu actorSSLTCPClient t0Lnet/sf/jni4net/inj/IClrProxy;v 首先是data.icvtnclient.SslTcpClient.\uu ctorsslltcpclient0native方法 首先是data.icvtnclient.SslTcpClient.SslTcpClient.java:25 位于program.JNI4NETexample.mainJNI4NETexample.java:46

为什么我会犯这个错误?提前谢谢你的帮助

以下是其他信息:

我将J4n.jar添加到构建路径中,并将所有dll文件和jar文件添加到源代码之前的根文件夹中

下面是代码:SslTcpClient SslTcpClient=newssltcpclient;这句话让我很难受

    package program ;
import net.sf.jni4net.Bridge;

import java.io.File;
import java.io.IOException;
import java.lang.String;

import system.Console;
import system.collections.IDictionary;
import system.collections.IEnumerator;
import system.io.TextWriter;
import firstdata.icvtnsclient.ISslTcpClient;
import firstdata.icvtnsclient.SslTcpClient;

/*import system.*;
import system.Object;
import system.io.TextWriter;
import system.collections.IDictionary;
import system.collections.IEnumerator; */
//This example is from the JNI4net example

public class JNI4NETexample implements  ISslTcpClient  {
    // {System.loadLibrary("ICVTnsClient.j4n");} //do not use .dll for loadlibrary


    public static void main(String[] args) throws IOException    {       

        // create bridge, with default setup
        // it will lookup jni4net.n.dll next to jni4net.j.jar 
         try {

                Bridge.setVerbose(true);
                Bridge.init();
               // Bridge.LoadAndRegisterAssemblyFrom(new File("ICVTnsClient.dll"));
                Bridge.LoadAndRegisterAssemblyFrom(new File("ICVTnsClient.j4n.dll"));

            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }

         SslTcpClient  sslTcpClient=new SslTcpClient();      
        String csEncryptedString = sslTcpClient.Encrypt("C1 2005 151601 4111111111111111 0703 84.00");
        System.out.println("THIS IS THE ASNWER "+ "csEncryptedString"); 
    }

    public String Decrypt(String arg0) {
        // TODO Auto-generated method stub
        return null;
    }

    public String Encrypt(String arg0) {
        // TODO Auto-generated method stub
        return null;
    }
}

你加载j4n.dll库了吗?是的。请参阅以上附加信息。