I am upgrading my application from java 1.8 to java 11 When I try to build using ant 1.10.8, my build fails but I also see a warning
warning: [options] bootstrap class path not set in conjunction with -source 8
I have set
source=1.8
and target=1.8
in build.xml javac
ant task
D:\Build>java -version
java version **"11.0.7" 2020-04-14 LTS**
Java(TM) SE Runtime Environment 18.9 (build 11.0.7+8-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.7+8-LTS, mixed mode)
D:\Build>javac -version
javac 11.0.7
Am I missing anything? If Im not wrong, I need to set the bootstrap class path but I am not sure how to do it in ant build.xml file. I also get below error
cannot find symbol [javac] import javax.annotation.PostConstruct;
Please help
**Note:** Im using javax.xml.ws, javax.xml.bind, javax.activation in my project