[Bug 1026928] %ant sets JAVA_HOME to jre instead of jdk making build impossible