I installed Apache Ant version 1.10.5 on my Windows 10 desktop system in order to build Netbeans 11.0 from source. I set the environmental variables and ant seems to be running properly. However, when I cd to the Netbeans folder and run ant to build it, I get the following error:
BUILD FAILED
E:\Netbeans 11.0\nbbuild\build.xml:514: The following error occurred while executing this line:
E:\Netbeans 11.0\nbbuild\build.xml:509: The following error occurred while executing this line:
E:\Netbeans 11.0\nbbuild\build.xml:556: The following error occurred while executing this line:
E:\Netbeans 11.0\nb\updatecenters\build.xml:44: exec returned: 1
Does anyone have any idea what would be causing this or where I could look up what the possible causes of "exec returned: 1" could be? Also, I am using jdk1.8.0_212.
Here is the surrounding code for the build.xml file:
39 <target name="bootstrap" description="Bootstrap NetBeans-specific Ant extensions."
40 depends="-jdk-init,-load-build-properties">
41 <fail message="You need to run on JDK 8+ to build NetBeans; java.home=${java.home}">
42 <condition>
43 <matches pattern="^1\.[01234567].*" string="${java.version}"/>
44 </condition>