Edit 1: Below the first line [ #!/bin/sh ], add a new line as [ export JAVA_HOME=[paste the path where java v1.6 is installed ]; so if your java v1.6 path is [ /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home ], the NEW LINE will appear as [ export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home ]

Edit 2: At the bottom of the file, you will find the term “java” twice. Replace “java” with “${JAVA_HOME}/bin/java” at both the places.

Save the file and close.

If you still face any issue, email the issue description to us at kindle-publishing-tools@amazon.com.