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 6350463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:48:51+00:00 2026-05-24T21:48:51+00:00

I have an Eclipse plugin that automatically loads existing Eclipse Java project to workspace,

  • 0

I have an Eclipse plugin that automatically loads existing Eclipse Java project to workspace, opens it and finally runs the Java application. If the Java project already exists in the workspace, the plugin refreshes the project relative to the project on the file system.

When doing only refreshing the plugin works fine, but when the plugin first imports the project by calling IProject.create(), opens it and runs it, I get a error dialog saying that program was not found.

The IProject.create() and open() are said to be long-running operations. Is there some way wait until the IProject.create() is finished then and then call IProject.open and after compliting the open methdod call the project.run() method?

  • 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-24T21:48:53+00:00Added an answer on May 24, 2026 at 9:48 pm

    IProject#create() and IProject#open() are both blocking methods, so you don’t have to do anything special to “wait for them” — when control returns to the call site, they’re done creating and opening the project respectively.

    Does the project contain Java source that needs to be compiled? If so you should probably also build the project after opening it and before attempting to run the Java program therein. Try using this:

    project.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented an eclipse plugin that it launches a java application when the
I have a plug-in to an Eclipse RCP application that has a view. After
I have findbugs plugin for eclipse which when run on my project will show
I'm looking for a configuration or plugin for eclipse that automatically saves files (so
I have an Eclipse plugin that makes use of several keybindings (Alt-G x, Alt-G
created an Eclipse plugin that contributes to the UI by a new project wizard
I am developing a java based eclipse plugin that monitors file activity. I need
I have used the Eclipse plugin Visual Editor to construct Java Swing interfaces. As
I have plugin that doesnt start(from dropins, with eclipse -clean), however its not even
I'd like to have my Eclipse plugin cause a URL to be opened by

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.