java-native-interface

Calling Win32 API method from Java

I need to call some methods in Wininet.dll from a Java program. I can find plenty of tutorials on how to call a new DLL that I create from Java, but I can't seem to find any tutorials on how to call an already existing DLL from Java. I know this involves JNI, but how, exactly, do I do this? Do I need to call javah on Wininet.h? Where...

Matlab crashes on library initialize when called from Java

Hello everyone. The setup I have is I'm using a Java application to call native C-code with JNI, which in turn starts up the MATLAB runtime and calls functions on it (I know there are other solutions to call MATLAB methods from Java). The problem is that the MATLAB engine crashes at some point during the initialization and I don't know...

Programming JNI with Delphi

Can I use Delphi to program to the Java Native Interface? From reading Essential JNI it seems possible if you make sure you are using the C calling convention. Anyone done this before? I would appreciate tips on tools that will help e.g. a tool to convert the C header file of Javah to Delphi. ...