Fixing Java to get the CLI working (MAC)
Posted: 29 Sep 2014, 01:02
I'm on a Mac (Mavericks) and I'm trying to start taking advantage of some of the CLI scripts that have been shared here. Since I've only used the GUI version until now, I started by installing the latest build through homebrew, and then went to use filebot -script fn: to call one of the github hosted scripts.
This was the output:
I searched the forum and found a similar output report (with a major.minor version 52.0) and assumed that I had the same problem and that my version of Java was incorrect. I used ` java -version ` with the following output:
Knowing that Java 8 is required I proceeded to download the latest java release for the Mac from Oracle and install, followed by a system restart. When I use the system preferences to access java control, the version is reported as v8 update 20 (build 1.8.0_20-b26).
With no change to the output of an attempt to call a script, I used filebot -script fn:sysinfo
With the same result.
If my problem is clear to anyone here, I'd really appreciate advice on how to proceed!
~exa
This was the output:
Code: Select all
filebot -script fn:artwork.tmdb /Movies/Movies/ 1 ↵ ──(Sun,Sep28)─┘
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/filebot/Main : 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)
Code: Select all
java -version 1 ↵ ──(Sun,Sep28)─┘
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
With no change to the output of an attempt to call a script, I used filebot -script fn:sysinfo
Code: Select all
──(Sun,Sep28)─┘
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/filebot/Main : 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)
With the same result.
If my problem is clear to anyone here, I'd really appreciate advice on how to proceed!
~exa