Unable to call vb.net dll in Java using JNI4NET

96 views
Skip to first unread message

RAJESH KUMAR

unread,
Sep 12, 2015, 1:01:39 AM9/12/15
to jni4net

Hi to all,


I am New to vb.net and i want to use existing vb.net code in to my java application for that chosen jni4net .I am using Eclipse and windows 32 bit operating system.

step 1 : created a library project in vb.net
step 2 : created a dll for that project
step 3 : downloaded the jni4net-0.8.8.0-bin.zip
step 4 : follow the steps https://github.com/jni4net/jni4net/wiki/
step 5 : created a java project in eclipse and try to execute but i am facing following exception.

loading core from D:/Rajesh/JNI4NET/jni4net.n-0.8.8.0.dll
loading jni4net.n-0.8.8.0, Version=0.8.8.0, Culture=neutral, PublicKeyToken=134a23405600bab4 from D:\Rajesh\JNI4NET\jni4net.n-0.8.8.0.dll
loaded jni4net.n-0.8.8.0, Version=0.8.8.0, Culture=neutral, PublicKeyToken=134a23405600bab4 from D:\Rajesh\JNI4NET\jni4net.n-0.8.8.0.dll
Initialized jni4net core
core loaded from D:/Rajesh/JNI4NET/jni4net.n-0.8.8.0.dll
clr.version :v4.0.30319
clr.arch :32bit
java.home :C:\Program Files\Java\jre1.8.0_60
java.version :1.8.0_60
sun.arch.data.model :32
loading SimpleDll.j4n, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null from C:\BhushanProg\SabreWork\Jni4Net\SimpleDll.j4n.dll
loaded SimpleDll.j4n, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null from C:\BhushanProg\SabreWork\Jni4Net\SimpleDll.j4n.dll
Exception in thread "main" java.lang.UnsatisfiedLinkError: simpledll.Sample.__ctorSample0(Lnet/sf/jni4net/inj/IClrProxy;)V
at simpledll.Sample.__ctorSample0(Native Method)
at simpledll.Sample.(Sample.java:25)
at Jni4NetTest.main(Jni4NetTest.java:22)


RAJESH KUMAR

unread,
Sep 15, 2015, 6:20:55 AM9/15/15
to jni4net

Hi to all,

Now able to execute my eclipse application followed by this video link.
https://www.youtube.com/watch?v=tI0tFUjeffA (Using Jni4Net) from 25:14 mins onwards.

Thanks&Regrads,
P Rajesh Kumar

Reply all
Reply to author
Forward
0 new messages