Kodi Community Forum

Full Version: Using the Minecraft version of Java to run tinyMediaManager
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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?va...ant=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