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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:39:18+00:00 2026-06-07T15:39:18+00:00

Scenario Let’s say I have an Eclipse workspace with Project A, Project B, and

  • 0

Scenario

Let’s say I have an Eclipse workspace with Project A, Project B, and Project C in it. Is there any way that I can configure eclipse to create a folder (anywhere) under my workspace called build that gets Project A.jar, Project B.jar, and Project C.jar when a build is executed? (Note that it doesn’t have to automatically build, this can be something I click on to launch.)

I’m open to a number of solutions, including Ant, as long as it meets the requirements below.

Requirements

  1. Project A.jar must contain all of the classes and resource files that would typically appear in /Project A/bin/ when Eclipse does a build.

  2. When I add Project D to my workspace, I don’t want to have to do anything special to Project D to make it play nicely with the build setup. That is, simply adding Project D to the workspace in eclipse will cause Project D.jar to appear in the build folder the next time a build is run. All of these requirements should also be satisfied for Project D with only standard Eclipse configuration for dependencies, etc.

  3. The classpath and other required build settings that are set in the eclipse project should carry through to the JAR files. That is, if Project A.jar requires Project B.jar to be able to run, then Project B.jar should be included in the classpath of Project A.jar.

  4. As a further extension of 3, 3rd party libraries that are not projects in the eclipse workspace must also be copied and referenced. That is, if Project A.jar requires spring.jar, spring.jar must also be copied to build and a reference must be added to the Project A.jar classpath. It would be really nice if these 3rd party libraries could go in a /build/lib folder.

  5. It cannot rely on any 3rd party tools or plugins that do not come with Eclipse Helios.

Related

Build project into a JAR automatically in Eclipse seems to be related and it may fit requirement 1 and 5, but I do not believe it fits any of the other 3.

  • 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-07T15:39:21+00:00Added an answer on June 7, 2026 at 3:39 pm

    I ended up writing a Java program that made use of org.apache.tools.ant.Project to run a simple Ant script. The Java program parses the .classpath files and sets the appropriate user properties for the Ant script to use (jar output path, classpath, etc).

    It might not be the perfect solution, but it was the easiest for me to implement and it meets my requirements.

    If you’re willing to use a 3rd party plugin for eclipse, it looks like Ant4Eclipse might be a good solution. That’s not an option for me, so I didn’t test it.

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

Sidebar

Related Questions

Let's assume below scenario: In the multi-processor system we have, PIT that interrupt any
Let's say I have a scenario where I have a Service that is responsible
Let's just say I have a scenario where I test signing up. After that,
My scenario is that I have a .net application (let's say a Console App)
Let me share the following scenario: I have a ASP.NET intranet Web-based application that
Let's say I have a scenario where I have a global plugin (or at
To simplify the scenario, let's say we have a list of People with FirstName
Let's say I have the following scenario: ComObjectClass firstCOMObject = new ComObjectClass(); ComObjectClass secondCOMObject
Let's me show first the scenario that is working: I have a HandlerAttribute that
I have the classic scenario with 2 tables and a junction table. Let's say,

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.