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.
Netbeans automatically generates the build-impl.xml file in a way that does not work correctly outside of Netbeans. Running vanilla Ant 1.9.9 or Ant 1.10.1 using Java 1.8 results in the following error: BUILD FAILED C:\Users\Stephen\hcs\orc.trunk\nb\build.xml:278: The following error occurred while executing this line: C:\Users\Stephen\hcs\orc.trunk\nb\build.xml:229: The following error occurred while executing this line: C:\Users\Stephen\hcs\orc.trunk\nb\ServerLibWOC\nbproject\build-impl.xml:1623: Unknown attribute [modulepath] Total time: 2 minutes 35 seconds Being able to build from the command line is important for continuous build (e.g. Jenkins or Hudson) and release processes that will not be done from inside Netbeans. Netbeans should work correctly or at least provide information about what additional or substitute libraries are required to make the build work correctly.
Workaround: Edit all build-impl.xml files and remove the "modulepath=" references. This has to be done frequently as Netbeans will re-introduce the "modulepath" at a later date.
Tried running the command line version of Ant under Java 9ea, but this made no difference.
Additional details and some discussion found here: https://stackoverflow.com/questions/46244201/netbeans-dev-9-x-java-projects-will-not-build-outside-of-netbeans/46246930?noredirect=1#comment79493141_46246930
Move defect to JIRA: https://issues.apache.org/jira/browse/NETBEANS-1106