Bridge between Java and .NET (intraprocess, fast, object oriented, open-source)
Questions tagged [jni4net]
72 questions
0
votes
0 answers
Exception in thread "main" java.lang.UnsatisfiedLinkError:******(Lnet/sf/jni4net/inj/IClrProxy;)V--->JNI4net
I used jni4net and created a j4n.dll and a j4n.jar. eclipse understands the imports when I try to instantiate an object using a new button like ISslTcpClient sslTcpClient = new SslTcpClient(); I get an error as follows:
Exception in thread "main"…

Pejman Saberin
- 69
- 5
0
votes
1 answer
jni4net return value from c# to java
I'm using jni4net to call a library i made in C# (using visual studio 2013) from Java (Eclipse).
Here is the code of my C# library :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using…

Stefano Franchini
- 11
- 6
0
votes
1 answer
jni4net failed to load DLLs in Java app
I'm trying to modify the jni4net sample code MyCSharpDemoCalc, and make the sample as a bridge between a .Net DLL and the Java layer. Here is the C# code:
using System;
using Dynamsoft.DotNet.TWAIN;
namespace MyCSharpDemoCalc
{
public interface…

yushulx
- 11,695
- 8
- 37
- 64
0
votes
2 answers
JNI4Net on ubuntu 14.04
Is is possible to use JNI4Net on linux ubuntu. I see not specific download seciton for linux.
I have found this example with use of JNI with out third party library JNI4Net.
I would like to simplify my life with this library.
I am trying to expose…

eomeroff
- 9,599
- 30
- 97
- 138
0
votes
1 answer
Convert a java.lang.Object to .net obejct with jni4net
How can I convert the double value of a jni4net proxy class Object to .NET double? Simple Convert.ToDouble(o) does not work, because it is nt of type IConvertible.

alex555
- 1,676
- 4
- 27
- 45
0
votes
1 answer
How do I call a DOTNET DLL and pass the variable using JAVA applet
I have a DLL build in DotNET.
My application is a Java based hosted on the APACHE server and accessed through the web browser on thin client.
Now I will place the DOTNET DLL file on the thin client and not on the server and I want to call this DLL…
0
votes
1 answer
JNI4NET - how to run Java application from C# Class Library project?
I have Java swing application, and I want to run it from C#.
It works correctly when I use it from WindowsFormsApplication (see working version below). I set WindowsFormsApplication window invisible, and the application exits after I call…

Serg
- 13,470
- 8
- 36
- 47
0
votes
1 answer
Problems running JNI4NET proxygen with xml config
I am trying to generate proxies. I copied a sample xml from the samples folder and modified it.
OS: Windows 8.1
Java Version: 1.7.0_45 (32 or 64 bit)
JNI4NET Version: 0.8.6
The command line: proxygen config.xml
config.xml:

Andreas
- 1,551
- 4
- 24
- 55
0
votes
1 answer
Export jars from library project in Eclipse
I have a Dynamic Web Project with a reference to a library project. When I export the .war file and try to call the method I got:
org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: net/sf/jni4net/Bridge
When I look into my…

gmojunior
- 292
- 1
- 4
- 7
0
votes
1 answer
System.IO.FileNotFoundException: myCSharpDemoCalc\work\MyCSharpDemoCalc.j4n.dll
jni4net does not generate MyCSharpDemoCalc.j4n.dll. generateProxy says it does but the file does not get created. Hence, I get System.IO.FileNotFoundException. Is this a bug in jni4net? I am using version…

Andre Krichikov
- 1
- 1
0
votes
1 answer
Threading issues when consuming a WPF library in a java application?
I have been attempting to interface an existing C# WPF API with a Java application.
So far I have successfully used jni4net to generate proxies to interface between Java and .NET code.
This integration produced STA threading issues with the WPF UI's…

Paul
- 4,009
- 1
- 17
- 15
0
votes
2 answers
Best choice. Use .Net Dll in Java Application
I know three is some questions about this, but I've not found the exact response.
We have a .Net dll (C#) with no dependencies or p/Invoke. So it's a full .net platform library.
One of our clientes wants to use it in a Java Application.
What's the…

user1380077
- 31
- 1
- 5