Fix Kindle Previewer crashing on OS X El Capitan


There is a working solution for fixing the crash on load bug in Kindle Previewer.

What I wanted to do here is simply clarify in absolutely clear terms the text that should change from what to what.

The first steps are clear and if you've been running Kindle Previewer on earlier versions of OS X then you should have these two things installed already (or at least X11).
  1. Download and install X11
  2. Download and install Java for OSX
The next steps are where things get a bit confusing. First right click the Kindle Previewer App in Finder and do as instructed on the Kindle Forums (to display the package contents), locating the Launcher file and opening it in a text editor. Now:
  1. Save a copy of the original file, just in case before proceeding
  2. Add the following text to the Launcher file
    export JAVA_HOME="/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home"
    immediately beneath:
    #!/bin/sh
  3. Replace
    java -d32 -XstartOnFirstThread -Dfile.encoding=UTF-8 -cp "${classpath}" com.amazon.epub.reader.Main "$1"
    with
    ${JAVA_HOME}/bin/java -d32 -XstartOnFirstThread -Dfile.encoding=UTF-8 -cp "${classpath}" com.amazon.epub.reader.Main "$1"
  4. Replace
  5. java -d32 -XstartOnFirstThread -Dfile.encoding=UTF-8 -cp "${classpath}" com.amazon.epub.reader.Main
    with
    ${JAVA_HOME}/bin/java -d32 -XstartOnFirstThread -Dfile.encoding=UTF-8 -cp "${classpath}" com.amazon.epub.reader.Main
In the same folder as the Launcher file there is a Kindle Previewer file. Open this in the same way as you did the Launcher file by dragging it to your favourite text editor. Now:
  1. Save a copy of the file
  2. Add the following text to the Kindle Previewer file: export JAVA_HOME=/usr/libexec/java_home -v 1.6
    immediately above
    # start the autoupdate
Kindle Previewer should now open and behave as expected.

Endorse on Coderwall

Comments

  1. This comment has been removed by a blog administrator.

    ReplyDelete

Post a Comment