AMC on OSX

Any questions? Need some help?
Post Reply
tmThEMaN
Donor
Posts: 8
Joined: 12 Jan 2014, 19:15

AMC on OSX

Post by tmThEMaN »

Hi ... i suddenly started having the below error when running FileBot script as below

Code: Select all

fa:~ fadi$ /Applications/FileBot.app/Contents/MacOS/filebot.sh -script fn:amc --output "/Volumes/NAS/Media" --log-file amc.log --action move -non-strict "/Users/fadi/Downloads/Media/TV" --def excludeList=amc.txt
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)
I have the latest Java and i haven't manually changed anything when this stopped working.

Can you please help :)
User avatar
rednoah
The Source
Posts: 23925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC on OSX

Post by rednoah »

Unsupported major.minor version 51.0 means that you're trying to run Java 7 code with a Java 6 JRE. I recommend using the latest Oracle Java 8 JRE. I'm sure you can find some tutorials via Google on how to make sure Java 8 is set as default.
:idea: Please read the FAQ and How to Request Help.
tmThEMaN
Donor
Posts: 8
Joined: 12 Jan 2014, 19:15

Re: AMC on OSX

Post by tmThEMaN »

Thanks for the quick reply rednoah.

I just installed Java JRE 8u11 then restarted the mac and i still have the same error. I even tried running filbert.sh alone and still faced the same error.

I'm running a Mac Mini with OSX 10.9.4 , i have FileBot 4.2 installed and the GUI interface works great. I tested File Rename and it didn't have any errors.

So only FileBot.sh is not running.

Any other suggestions?

Thanks
tmThEMaN
Donor
Posts: 8
Joined: 12 Jan 2014, 19:15

Re: AMC on OSX

Post by tmThEMaN »

Ok, found the solution ... so posting here for the benefit of others.

Installing JRE does not change the Java PATH value to the new version. So it was still pointing to version 6. You can test that by running command

Code: Select all

java -version
if the result is 1.6 , then you still have the wrong Java version.

There seems to be many solutions, the easiest one is to install the JDK instead, this will update the PATH. you can find it here:
http://www.oracle.com/technetwork/java/ ... 33151.html

I bet there are faster ways, but that's what i found quickly when i searched for a solution. and downloading 200mbs was not a burden for me. Plus i could use the new JDK for other purposes.

This solved the problem for me.
Post Reply