jni4net - how to set the absolute path to jni4net.j-0.7.1.0.jar

Posted by w1z on Stack Overflow See other posts from Stack Overflow or by w1z
Published on 2010-03-26T10:42:39Z Indexed on 2010/03/26 11:33 UTC
Read the original article Hit count: 558

Filed under:
|
|

Guys, help me...

I use jni4net in my WCF service. in the ctor of the service I try to create BridgeSetup object.

        var bridgeSetup = new BridgeSetup(false);
        bridgeSetup.AddAllJarsClassPath(".");
        Bridge.CreateJVM(bridgeSetup);

As I understand in this moment jni4ne tryes to generate jni4net.j-0.7.1.0.dll from jni4net.j-0.7.1.0.jar. It tryes to find jni4net.j-0.7.1.0.jar near the jni4net.n-0.7.1.0.dll and can't. So I get next error...

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fileprocessingservice\76f0fa69\5db44426\assembly\dl3\4fa263c6\f424b7fa_c8ccca01\jni4net.j-0.7.1.0.DLL

Anybody know how to solve the problem?

Thanks..

© Stack Overflow or respective owner

Related posts about .NET

Related posts about java