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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:49:40+00:00 2026-06-17T15:49:40+00:00

I am running my Ant build.xml file both locally and on a server running

  • 0

I am running my Ant build.xml file both locally and on a server running Jenkins.

Locally, inside Eclipse, the build works wonderfully. I set the classpath using:

<path id="classpath">
    <fileset dir="${lib.dir}" includes="**/*.jar" />
</path>

and then I use the following when I run a target:

<javac srcdir="${src.dir}" destdir="${build.dir}" includeantruntime="false">
    <classpath refid="classpath" />
</javac>

When I debug using echo the classpath shows all the available jars which are in my project/lib folder.

However, when I Jenkins fetches this build.xml file and runs it remotely, it prints an empty classpath (using the same echo target).

Why do my class paths differ based on Eclipse versus Jenkins?

  • 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-17T15:49:43+00:00Added an answer on June 17, 2026 at 3:49 pm

    Your build environment on you Jenkins server is going to look a bit different from your desktop dev env.

    Sanity check: where/how is ${lib.dir} provided with a value?
    Usually it is set with a property in the build file – can you maybe post that here also?

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

Sidebar

Related Questions

I have an ant build.xml file, and inside it there is a compile target.
I'm running ant and added the below to build.xml but I'm getting:\ build.xml:51: Element
I've written an Ant build.xml file which obtains a number of source files via
I have the following Ant build file: <?xml version=1.0 encoding=UTF-8?> <project default=build name=MyAntScript> <!--
I'm writing an ant build.xml file which does the following: Takes a zipped folder
i need to write an ant (build.xml) file to do the following: - run
I'm trying to store a relative path to a file in my ant build.xml
I'm running an ant build file that creates a Jar. The task looks like
I have a build.xml file that works fine. The problem is that the generated
I have the following: running eclipse-indigo in CentOS 6.2 , I also installed apache-ant-1.8.4

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.