ask. why can’t build?
your JAVA_HOME is not properly configured as it seams:
try follow the answer to this question: