This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
"standard" Netbeans generated ant scripts include references to netbeans related directories, which prevent other users (not using netbeans) to run de default target. Error message: build-impl.xml:201: the <classpath> for <junit> must include junit.jar if not in Ant's own classpath A related issue is the reference (via private/private.properties) to my C:\\Documents and Settings\\zwiers\\.netbeans\\6.0\\build.properties file. What is going to happen in a few month, or a few years, when we have netbeans 6.1 or netbeans 7 ? The copylibs path specified in that file won't be available any longer, and the build is bound to fail.
For use outside the IDE you need to pass definitions for these paths to Ant. The pointer to build.properties is updated whenever you open a project in the IDE, so for in-IDE usage there is no issue with upgrading NetBeans or switching to a different installation location. (The nbproject/private subdir is not part of the versionable content of the project; like build/ and dist/ it should not be shared.) *** This issue has been marked as a duplicate of 44035 ***