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

  • SEARCH
  • Home
  • 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 7490121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:33:13+00:00 2026-05-29T15:33:13+00:00

In an eclipse plug-in I am developing I need to execute an exe file

  • 0

In an eclipse plug-in I am developing I need to execute an exe file from within the plug-in.
For this, I am using the java code:

p = Runtime.getRuntime().exec(command);

Where p is Process. This works fine.

However when the plug-in is deployed (already when I am using “run eclipse application” in my development environment), the plug-in is looking for the exe file in the folder where my eclipse is located (near the eclipse.exe file). I don’t want to put my exe there.

I want that eclipse will put it inside the plug-in jars (or in some other folder where such resource files can be located), and that the exec command will find it there. Minor addition: to run, my exe file needs a dll which I put in the same directory as the exe. So when it runs from the plug-in the exe needs to be able to find this dll.

How do I do that?

  • 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-29T15:33:14+00:00Added an answer on May 29, 2026 at 3:33 pm

    You have to specify the full path of your exe in the exec command. To get the full path of the exe within your bundle, use

    URL url = FileLocator.resolve(FileLocator.find(Platform.getBundle("my.bundle.id"), new Path("path/within/my/bundle.exe"), Collections.EMPTY_MAP));
    

    This is of course only working if your bundle is not deployed as jar file, but as folder. If you want to deploy your bundle as jar file you have to unpack the exe before executing.

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

Sidebar

Related Questions

I have written a java code in Eclipse and i am developing a plug-in
I'm developing an Eclipse plug-in and I'd like to insert code automatically... sort of
I am using the Reflections library in the Eclipse plug-in I am currently developing.
i am developing an simple blackberry application in BlackBerry - Java Plug-in for Eclipse.
I'm developing an Eclipse plug-in, based on a bunch of core Eclipse plug-ins like
I'm developing an Eclipse plug-in where upon pressing a button, the plug-in takes the
I'm developing an Eclipse plug-in and I have a problem which is reproduced here:
I'm developing a plug-in in Eclipse and I want to show a view. I'm
Title: Eclipse plug-in development Unable to instantiate class due to java.lang.NoClassDefFoundError: Trying to build
I am developing a plug-in in Eclipse RCP and I have to read and

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.