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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:44:45+00:00 2026-06-11T18:44:45+00:00

I am creating a dynamic IProject in eclipse. This IProject acts like the New

  • 0

I am creating a dynamic IProject in eclipse. This IProject acts like the “New Plug-in with JAR archives” project in eclipse. Then I point to the reference of this outside jar file. Which btw I extract then link to the temporary IProject.

<linkedResources>
    <link>
        <name>SampleTestSuite</name>
        <type>2</type>
        <location>D:/eclipse-rcp-indigo/tests/SampleTestSuite</location>
    </link>
</linkedResources>

Now, I’m planning to make this IProject Run-As JUnit. I want to delete the extracted and linked jar file after the JUnit. This is my code below in running JUnit but after file deletion it will throw an error because the linkedresource will not be there. Any ideas how to monitor if JUnit is already finished so that the linkedresource will be deleted?

Activator.getDisplay().syncExec(new Runnable() {
     public void run() {
    Job job = new Job("Test Runner JUnit") {
    @Override
                protected IStatus run(IProgressMonitor monitor) {
                    monitor.beginTask("Launching JUnit", 100);
                    try {
                        ILaunch launch = new Launch(launchConfiguration,
                                "run", null);
                        launch.setAttribute(
                                "org.eclipse.debug.ui.ATTR_CONSOLE_ENCODING",
                                DebugPlugin.getDefault().getLaunchManager()
                                        .getEncoding(launchConfiguration));
                        DebugPlugin.getDefault().getLaunchManager()
                                .addLaunch(launch);
                        launchDelegate.launch(launchConfiguration, "run",
                                launch, monitor);
                    } catch (CoreException e) {
                        return e.getStatus();
                    } finally {
                        monitor.done();
                    }

                    return Status.OK_STATUS;
                }
            };

            job.addJobChangeListener(new JobChangeAdapter() {
                public void done(IJobChangeEvent event) {
                    if (event.getResult().isOK()) {
                        System.out.println("Job completed successfully");
                        // delete the file here
                    } else
                        System.out
                                .println("Job did not complete successfully");
                }
            });


            job.setPriority(Job.INTERACTIVE);
            job.schedule();
        }
    });
  • 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-06-11T18:44:46+00:00Added an answer on June 11, 2026 at 6:44 pm

    I just added this one

    IProcess[] processes = launch.getProcesses();
        for (IProcess process : processes) {
        while (!process.isTerminated()) {
        }
            //delete here
       }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating dynamic web project in Eclipse. I have the .java files in
I can't start eclipse 3.6 helios on ubuntu 10.10 after creating dynamic web project
I'm creating dynamic templated XAML designs that I would like to convert to PNG
I am creating dynamic TextFields in actionscript 3.0. Like many others, my text disappears
I am creating dynamic text boxes on button click and then showing values on
I need to integrate the functionality of creating dynamic pages (like google sites) to
I'm developing a chat system. In this I'm creating dynamic tab panels in a
There might be a duplicate of this (I've tried checking questions on creating dynamic
I would like to know what is the best way of creating dynamic queries
I am creating dynamic menus and submenus in php.... Can't know where to start....

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.