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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:25:48+00:00 2026-05-27T06:25:48+00:00

I have a NetBeans project that I’m trying to compile manually from command-line ant

  • 0

I have a NetBeans project that I’m trying to compile manually from command-line ant. When running on the same machine that has NetBeans installed, it works flawlessly.

However, if I run ant on a central continuous integration server (no NetBeans installed) it fails on a <copyfiles> task:

BUILD FAILED
/var/lib/jenkins/workspace/project_name/nbproject/build-impl.xml:697: Problem: failed to create task or type copyfiles
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

The target is in the auto-generated build-impl.xml, which looks something like this:

<target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
    <copyfiles files="${file.reference.some_dependency.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
</target>

When I look at the ant manual, copyfiles isn’t even a proper ant task. So what’s up?

How can I get this to run on a machine with no NetBeans installation?

  • 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-27T06:25:48+00:00Added an answer on May 27, 2026 at 6:25 am

    Per this advice, I verified the dependencies, and indeed the lib/CopyLibs directory was not versioned in our source control repo. That’s why my local environment was able to compile, but the CI server wasn’t.

    After adding the dependency to the classpath – org-netbeans-modules-java-j2seproject-copylibstask.jar specifically – the ant build succeeded.

    On a personal note, I find it absurd that NetBeans needs an external dependency for a task that – trivially – exists as a standard ant task.

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

Sidebar

Related Questions

I am using Netbeans 7.0.1 with a web project that I have imported from
We have a netbeans project that has an xsd that we use to create
I have a project that I am building with Netbeans 6.1 and I am
Java Newbie here. I have a JFrame that I added to my netbeans project,
I have a NetBeans project that relies on one specific Java class in another
I've inherited a java project that appears to have been developed using the NetBeans
I'm working on a project that uses NetBeans to generate the ANT build files.
I have a Java project that I write in Netbeans on Glassfish server. It
I have a NetBeans file nbproject/project.properties that always shows up in the Changes not
I have setup a Netbeans project having as development host a remote machine. My

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.