Kodi Community Forum

Full Version: tinyMediaManagerCMD.sh throws exception at start
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm running MacOS Sierra 10.12.3 with Java version 1.6.0_65.

When I try to start tinyMediaManager from the command line I get 2 error messages.
For example I change to the application directory and rund the script
Quote:# cd /Applications/Video/tinyMediaManager.app/Contents/Resources/Java
# ./tinyMediaManagerCMD.sh -updateTv

The first one is only minor and easily to avoid, as it's only used to identify LinuxOS
Quote:expr: syntax error

However with the second one I'm not able to find a workaround, as it seems to be within the java code.
Quote:Exception in thread "main" java.lang.UnsupportedClassVersionError: org/tinymediamanager/TinyMediaManager : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Does anyone know how to fix that?

BR
Andreas
You need at least Java 7 to run an actual version of TMM.
That's strange because the 'standard' start of the app is working when double clicking the icon.
Ok. Just learned the java on the command line is not using the JRE by default.
Updating the shell script to explicitly use /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java did work.

After installing JDK 8 the script worked as expected.

Thanks for the hint!