We have a native application that can be accessed through JNI-> DLL or by calling EXE with command line parameters. What would be a better approach?
We will refer to this method approximately 100 times a day. Performance is not very important. This native application was developed by a group outside our company, so we are not too familiar with the code (although we have one).
The EXE route seems simpler and simpler (especially since we did not use much C). I am also going with JNI that you can destroy the JVM if your dll code has a memory leak or encounters some other problems.
source
share