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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:50:24+00:00 2026-06-06T16:50:24+00:00

I have some issues in setting the classpath for the a project for which

  • 0

I have some issues in setting the classpath for the a project for which Im trying to create a jar using the Ant build script. For eg: Consider a project A in the workspace. This project has internal dependencies with other projects in the workspace. There are project B, C, D in my workspace, which are added to the build path of the Project A. I have the below compile script in the build.xml. When I try to execute the script, the compile does not seem to happen, due to issues with classpath. Please find the code below.

 <target name="compileBusla"  description="description">  
    <antcall target="clean"></antcall>  
    <echo message="Creating directory '${target}' if not present "></echo>  
    <mkdir dir="${target}"/>  
    <mkdir dir="${Classfiles}"/>  
    <javac srcdir="../A/src" destdir="${Classfiles}" />  
    <classpath>  
        <pathelement location="../B" path="src" />  
        <pathelement location="../C" path="src"/>  
        <pathelement location="../D" path="src" />  
    </classpath>  
</target>  

When I try to execute the script, I get the error at this line ” saying that compilation fails. Require help in setting the classpath in the buildscript. Thanks in Advance

  • 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-06T16:50:26+00:00Added an answer on June 6, 2026 at 4:50 pm

    A classpath contains directories and jars which contain compiled class files. You added the source folder of A, B and C. Add their classes folder, or the jar file generated for these projects.

    Moreover, the path attribute of pathelement is not just a directory name. It’s a path. You should just use

    <pathelement location="../B/src" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having some issues with setting values using MacRuby and Cocoa. I have
I'm trying to get SBT to build a project that could have more than
I'm using jQuery UI Select Menu and occasionally have some issues. This is located
Rails 3.1 Nested_forms Ran into some issues setting up and might have hacked the
I'm having some issues setting up django-mssql on Win Server 2008 R2. I have
I am trying to create localization for my ASP.NET code, but I have issues
I have some issues with a PHP file that is not working properly. The
I have some issues with my EJB 3 timer where it is launched more
I'm have some issues adding a class to 2 navigation links on a theme.
I seems to have some issues in order to compile gproc from uwiger. I

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.