i need to use C++ methods from java with a compiled DLL that doesn't include the JNI Export functions. I need my DLL to be used from Java using JNA or JNI. JNA was easy to do using an interface but how can i achieve the same thing with JNI? Is it possible to run the .cpp file with the export functions on his own standalone thing? Thanks
Asked
Active
Viewed 300 times
0
-
2You need to write another DLL that calls this DLL, and that exports JNI native methods. – user207421 Feb 08 '18 at 23:48
-
Yeah this is what i thought, no way of passing around that? – hugo411 Feb 08 '18 at 23:52
-
There is no way around it. – Brandon Feb 09 '18 at 02:09
-
My dll will have to receive a class from the other dll in order to export the JNI native methods? – hugo411 Feb 09 '18 at 19:38