I reinstalled between jdk-8 and jdk-12, the building process shows different errors but both failed. And both are showing in the log that the bcel package is missing as the first error.
I've set JAVA_HOME in both jdk with the corresponding value;
sh build.sh -Ddist.dir=~/tmp/ant dist this is the code I get from the org document for building.
Loading source files for package org.apache.tools.tar... Loading source files for package org.apache.tools.zip... Constructing Javadoc information... /home/uppdev/tmp/ant/src/main/org/apache/tools/ant/filters/util/JavaClassHelper.java:23: error: package org.apache.bcel.classfile does not exist import org.apache.bcel.classfile.ClassParser; ^ /home/uppdev/tmp/ant/src/main/org/apache/tools/ant/filters/util/JavaClassHelper.java:24: error: package org.apache.bcel.classfile does not exist import org.apache.bcel.classfile.ConstantValue;
: : :
Building index for all the packages and classes... Building index for all classes... Generating /home/uppdev/tmp/ant/build/javadocs/help-doc.html... Note: Custom tags that could override future standard tags: @todo. To avoid potential overrides, use at least one period character (.) in custom tag names. 26 errors 100 warnings
BUILD FAILED /home/uppdev/tmp/ant/build.xml:1012: The following error occurred while executing this line: /home/uppdev/tmp/ant/build.xml:1520: Javadoc returned 1
Total time: 20 seconds