¿cómo Hacer Para Que Mi Mac Reconozca Mi Disco Duro Externo

when i run gradlew setupDecompWorkspace it returns setup failed and says please set JAVA_HOME variable in your environment to match location on your java installation. iv done this and it says the same thing.