Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 401907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:04:36+00:00 2026-05-12T17:04:36+00:00

We have a native app that we can access via JNI->DLL or by invoking

  • 0

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?

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).

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:04:36+00:00Added an answer on May 12, 2026 at 5:04 pm

    I would strongly recommend the .exe approach.

    1. if it crashes you can respawn the .exe
    2. you won’t suffer from memory leaks / corruptions etc.

    The downside is that you may have to parse the .exe output to determine results/status etc., and if it’s not designed for this, then this might be impractical (or impossible, even).

    But as a first approach, spawning the .exe is the way to go. Don’t forget to consume the stdout/err concurrently to avoid any .exe hanging problems (a common problem, if SO questions are to be believed).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Quick question. I have an app that use a native DLL through PInvoke, this
I have a legacy Java (not my native language) app that I'm trying to
I am developing native iPhone app. I have one requirement that, there are 5
I have an android app which has native code. The native code needs to
I have developed a system app for my rom which includes some native libraries.
We need to have some kind of app that we can deploy to an
I have an app that can be accessed on mobile phones, both iOS and
Can an HTML5 application that is running in a browser access native resources. The
On the Facebook counterpart of a native iOS app: what's the worst that can
I am building a web app which contains a Google Maps link that can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.