kmttg won't run on Mac OS X 10.10: To use the “java” command-line tool you...
TiVo To Go and advanced Remote Control
Status: Abandoned
Brought to you by:
moyekj
I get this error when running kmttg on Mac OS X Yosemite 10.10 (14A389):
To use the “java” command-line tool you need to install a JDK.
Here's what the terminal session says after running kmttg just before the Java message comes up:
/Applications/kmttg/kmttg ; exit;
No Java runtime present, requesting install.
logout
[Process completed]
Java verified installation Version 8 update 25
What do I need to do to get kmttg to run?
Looks like for some silly reason, JRE installs on Mac no longer put java in path, so you have to add java to your path manually. One way to do it is as indicated in this post:
http://www.tivocommunity.com/tivo-vb/showthread.php?p=10306203#post10306203
Yes, that fixed it. But first I had to remove the old symlink...
Here's the old, original, none working symlink:
readlink /usr/bin/java
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
Then I deleted the symlink:
sudo rm /usr/bin/java
Then, as directed, I created the new symlink to add java runtime to the path:
sudo ln -s "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java" /usr/bin/java
Now kmttg is running!
Thank you!
Last edit: BobCat 2014-11-13
Interestingly, when I attempt to do this on a clean install of Mojave, I get the following:
Mini2012:~ paul$ sudo rm /usr/bin/java
Password:
rm: /usr/bin/java: Operation not permitted
Here is the location with permissions:
lrwxr-xr-x 1 root wheel 74 Aug 16 19:45 java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
Last edit: Paul Kleeberg 2019-08-18