Revert "Remove JAVA_HOME variable to hopefully resolve build issues"This reverts commit 800cd672b7ba53d8eb2ce3ed3311d9b699e165ed.