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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:55:08+00:00 2026-05-25T11:55:08+00:00

My project has many dependencies that I’ve referenced from other projects. I am now

  • 0

My project has many dependencies that I’ve referenced from other projects. I am now writing the build.xml file and am currently writing the JAR task. I guess I’ll begin with the bold presumption that if I expect my JAR to behave correctly outside of Eclipse, I’ll need to include a copy of each referenced JAR dependency somehwere in the JAR file.

So I now need to add a fileset under the jar task to instruct Ant to include these dependencies in the JAR. The problem is, when I switch to Navigator View and try to find my dependencies in my project, I don’t find them! The only reference to them is in a .classpath file that references their absolutely URLs, which I assume is how Eclipse finds them.

So my question is, how do I instruct Ant to look for the dependencies in this .classpath file and include them in my JAR?

My fear is that I’ll have to first manually copy each JAR into a directory underneath my project root, and then simply reference that directory in my build. But there’a a lot of JARs, and that would mean a lot of tiem lost to copy-n-pastin’.

Please no suggestions for Ivy or Maven, I’m well aware that these are the best solutions for my situation but for reasons outside the scope of this question, they are just not feasible.

Thanks for any help.

  • 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-25T11:55:08+00:00Added an answer on May 25, 2026 at 11:55 am

    Do you want your project to produce an executable jar or will it be part of a distributable package that gets extracted and run? If its not an executable jar that you need then you should create a jar that includes just the classes and resources from your project without any of the dependent jars. Then if you want to release your project as a distributable package you would probably create a zip and tar.gz that includes the dependencies.

    There is no way that I know of to automatically synchronize filesets between Ant and the Eclipse .classpath file. Aside from writing your own tool, which I’ve seen done before. So the manual copying of jars may turn out to be the quickest solution.

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

Sidebar

Related Questions

ok i have a project which has many gridview in its pages... now i
I am adding MVC to a project that has MANY legacy webform pages. This
I'm working on a project that has many iframes that are opened and closed
Given that every software project only has so many programmer-hours dedicated to it, how
We have a sub-project 'commonUtils' that has many generic code-snippets used across the parent
I've inherited a flash project (my first) that has many existing symbols in the
I'm building WPF client application. I'm following MVC pattern. The project solution has many
In a project, one of my entities is House which has many enumeration properties
I have a Partner model that has_and_belongs_to_many Projects, while each Project has_many Sites. I
I'm writing a simple node.js addon in C++ using Eclipse CDT. The project has

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.