title: Execute native code via JNI/DLL or EXE?
body: <p>We have a native app that we can access via JNI->DLL or by invoking an EXE with command line parameters.  Which would be the best approach?</p>
  
  <p>We will be invoking this method about 100 times a day.  Performance isn't super important.  This native app was developed by a group outside of our company so we are not too familiar with the code (though we do own it).</p>
  
  <p>The EXE route seems easier and more straightforward (especially as we haven't used a lot of C).  Also I gather with JNI you can crash your JVM if if your DLL code has a memory leak or encounters some other troubles. </p>