Kodi Community Forum
OS X Using the Minecraft version of Java to run tinyMediaManager - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+---- Forum: TinyMediaManager (https://forum.kodi.tv/forumdisplay.php?fid=204)
+---- Thread: OS X Using the Minecraft version of Java to run tinyMediaManager (/showthread.php?tid=352896)



Using the Minecraft version of Java to run tinyMediaManager - sillyfrog - 2020-03-27

I wanted to run tinyMediaManager on my Mac (macOS Catalina), without installing Java as I have had issues with that in the past. So I started having a poke around to see if I could use the version of Java that comes with Minecraft - and it turns out you can! Smile

After downloading tMM and copying it to your /Applications/ folder - assuming you have the latest version of Minecraft and you have loaded it at least once (the Minecraft Launcher does the actual downloading of Java etc) - you can open a terminal and run this command:

bash:
~/Library/Application\ Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/java -Dsilent=noupdate -Djava.net.preferIPv4Stack=true -Dappbase=https://www.tinymediamanager.org/ -jar /Applications/tinyMediaManager.app/Contents/Resources/Java/getdown.jar /Applications/tinyMediaManager.app/Contents/Resources/Java/

Hopefully this helps some others looking to run tMM on their macOS.

Cheers!


RE: Using the Minecraft version of Java to run tinyMediaManager - mlaggner - 2020-03-27

that could be solved more elegant (whereas this is not officially documented, but tmm is able to run this way):

* download the Java runtime (JRE) for your OS from: https://adoptopenjdk.net/archive.html?variant=openjdk11&jvmVariant=openj9
* extract the contents of this archive to the tmm folder; you should now have a folder called like "jdk-11.0.5+10-jre" inside the tmm folder.
* rename the extracted folder to "java_vm"

launch tmm :-)

if anything does not work, you can simply rename/delete the
java_vm
folder and tmm will start with the system Java

this way you have an optimized and independent Java just for tmm

EDIT: I forgot that our patcher/launcher needs java as well Sad so your solution is needed to launch the tmm launcher/patcher.. we're working hard to solve this issue, but this needs a ton of testing