How to access dll file in java?

I have some methods in the Visual Basic 6.0 DLL that I need to get in Java 6.0. How to do it?

+3
source share
2 answers

Java Native interface is your friend. But it's easier to use the Java Native Access library. Here is the answer to a similar question .

+7
source

JNI can be easily used to access any function that is publicly available in the DLL (managed or unmanaged) so that it can be used in java.

You will need to create your own interface using the Java Native Interface (JNI) and then call the interface functions as usual.

+1

Source: https://habr.com/ru/post/1767298/


All Articles