Contents | Start | End | Previous: KB0277: Why do unused automatic styles remain in the formatting palette? | Next: KB0279: How can I change the size of the cover image?
See also: EpubCheck fails to run
If you are running Jutoh on Mac OS X 10.11 or later and try to use EpubCheck (the Check command), you may see this error message:
This application requires the legacy Java SE 6 runtime which is unavailable for this version of OS X
or other Java error.
To fix this, you can download the JDK ('Java SE Development Kit') from www.oracle.com/technetwork/java/javase/downloads/. It's important to download the JDK, and not the JRE; the file to download will be similar to jdk-13_osx-x64_bin.dmg. Restart your machine after installation.
The link above is recommended, but alternatively, you can get a legacy version of Java from Apple here:
support.apple.com/kb/dl1572?locale=en_US
You may have to disable Rootless System Integrity Protection in Mac OS X before installing, and then enable it again. This is documented here:
osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x/
and an article about installing Java can be found here:
osxdaily.com/2015/10/17/how-to-install-java-in-os-x-el-capitan/
To test whether your Java is working independently of Jutoh, open a terminal window and type java. If the output is a bunch of options, but no error message, Jutoh should be able to use Java for running EpubCheck.
If all else fails, you can try installing Kindle Previewer 3 and using the Java that comes with it.
To do this, after installing KP3, click Options on the Jutoh toolbar, then Helpers, and in the Epub checker command field, replace
java
with
"/Applications/Kindle Previewer 3.app/Contents/MacOS/lib/fc/jre/bin/java"
so the whole command looks like:
"/Applications/Kindle Previewer 3.app/Contents/MacOS/lib/fc/jre/bin/java" -Xss1024k -jar "$APPDIR$/epubcheck-4.2.2/epubcheck.jar"
(the quotation marks are important so should be as per the above).
Contents | Start | End | Previous: KB0277: Why do unused automatic styles remain in the formatting palette? | Next: KB0279: How can I change the size of the cover image?