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).
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:
- Save a copy of the original file, just in case before proceeding
- Add the following text to the Launcher file
export JAVA_HOME="/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home"
immediately beneath:
#!/bin/sh - 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" - Replace 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:
- Save a copy of the file
- 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.
This comment has been removed by a blog administrator.
ReplyDelete