Bridge between Java and .NET (intraprocess, fast, object oriented, open-source)
Questions tagged [jni4net]
72 questions
0
votes
1 answer
How to call a method in .Net DLL in a Java program
I was trying to use a .NET DLL from Java code, the tsMemberFunctions.DLL is loaded successfully, but the code fails to call the actual function.
See the snippet below:
public class tsMemberFunctions {
public native void…

Himanshu Arora
- 688
- 1
- 9
- 20
0
votes
1 answer
How do you include proxygen's "target" folder in a Visual 2017 solution?
I've successfully generated proxies from Java to .NETusing jni4net proxygen. I'm now trying to create a .NET solution in Visual Studio 2017 and use the Java proxies in a .NET console program. I've imported the .dlls from the proxygeneration and it…

ruben vilhelmsen
- 35
- 4
0
votes
0 answers
How to investigate JNI errors that only appear in Visual Studio debugger
I am working on a .NET application that is required to use a third-party library (a .NET eBMS/AS4 client); that third-party library is itself a JNI wrapper around a Java library. When I call the library, an exception is occurring within the Java…

David Keaveny
- 3,904
- 2
- 38
- 52
0
votes
1 answer
Java / Azure / Jni4Net / dll / Win32Exception (0x80004005): Access is denied
I have recently deployed my java spring boot app to the Azure app services. Everything is ok until I try to instantiate service class from the third party DLL rolled up in the spring boot up with jni4net (this works perfectly when deployed to…

deedeky
- 45
- 1
- 7
0
votes
1 answer
Performance of Javonet
So far, I've gotten Javonet to work to calling a .net dll. It was as easy as advertised to create the javonet code.
However, in my case, I have a loop that runs approx 10 million times, and within that loop, I'm calling a dll method via Javonet. My…

Jonathan Sylvester
- 1,275
- 10
- 23
0
votes
1 answer
jni4net on Docker Ubuntu Host
I have a application developed in Java 8 with SpringBoot, that use jni4net for consuming a dll library.
It's posibble make a docker container in Ubuntu to run this application ?
Thanks

Jonathan Cordero Duarte
- 161
- 1
- 4
- 17
0
votes
2 answers
c# connect to sql via jdbc
I have a program in c# and need to connect to SQL via JDBC. I read that JDBC works with java and since I need to use it from C#, I found out that there is jni4net that bridges between the two.
I can't seem to find any samples or tutorials on how to…

aura
- 116
- 1
- 2
- 16
0
votes
1 answer
KeyNotFoundException when execute proxygen in jni4net
I realise an implementation to connect C# with Java through jni4net.
I generated a test class with C# ( conversion the cs file to dll) and called from Java, works fine.
My problem is with a dll; this dll was provided by the client. When executing…

Green - 4
- 21
- 11
0
votes
0 answers
Is it possible to debug a C#/.Net program running via jni4net?
I'm making an method call from Java to a C#-DLL via jni4net and I want to debug the C#-Code.
I tried the answer in here, but it didn't work for me. What else can I do?
0
votes
1 answer
JNI4NET Proxygen cannot load/find Java class in simple Java class library?
I have managed to get the sample projects for the JNI4NET tool working by generating some Java proxy classes with the ProxyGen.exe program supplied with it.
I am now trying to translate this working sample into a small test. So far I have created a…

KDecker
- 6,928
- 8
- 40
- 81
0
votes
1 answer
How to use JNI4NET when your C# library depends on existing managed dll?
My .NET program I want to use in Java depends on SlimDX, a managed wrapper over DirectX. I add it to the project references as normal without hiccup.
However, when it comes to using JNI4NET's build.cmd, I get a CS0400 error suggesting that it does…

Luke Fernandes
- 55
- 1
- 4
0
votes
0 answers
Netbeans runtime configuration in jar
I have a maven project and jni4net is one of the dependency and it's running fine in Netbeans. But when i package it into a jar i get the error java.lang.UnsatisfiedLinkError: no jni4net.n-0.8.8.0 in java.library.path. I solved this problem in…

Nazim
- 209
- 5
- 17
0
votes
0 answers
ProxyGen doesn't generate "build.cmd" file
I'm trying to get Jasper Reports working from my app in VB.Net. So, after considering many options, I decided to create a small program in java to launch it, and reference it in my .Net project, using JNI4NET.
I don't know if I'm doing something…

xecollons
- 536
- 6
- 22
0
votes
1 answer
jni4net in c#--Why did not java.util.List list= new java.util.ArrayList();
java.util.List list= new java.util.ArrayList(); // error in c#
List list= new ArrayList();// java
only: Hashtable hashtable=new Hashtable(); //ok in c#

taotao
- 1
- 6
0
votes
1 answer
JNI4Net java in c# , JNIException
I have a simple Java class called jniBridge.Calculator that has one simple method Add(int a, int b). After building the project using eclipse, i exported the project as a JAR file.
I then called proxygen on the JAR file, this produced a folder…

taotao
- 1
- 6