1
votes

I made Java project using JNI(Java Native Interface).

Java load a DLL file.

the DLL fires Events.

How to handle DLL events in Java program?

When the DLL event is fired, I want to call specific method.

1
Have you tried anything? Do you have code to share from your DLL event logic and your corresponding Java classes?Samhain

1 Answers

1
votes

You can register a callback for your native code which corresponds to a method within a class instance or a static method on the Java side.

See this example for C++