Do you have multiple JDKs installed on your machine? I had issues with multiple JDKs on my Macbook as Ant was somehow using another JDL always
I am currently using jenv to set global JDK for macOS and then the source build works properly for me with regards Tushar
