Page 1 of 1

filebot 4.1 RC3 Mac OSX

Posted: 16 May 2014, 16:23
by bnnoirjean
let me begin with while i am not an expert by any means in programming I admire your work with this awesome little software! now I have an issue since i jumped from filebot 4.0 to the preview release filbot 4.1 RC3.
I dragged the install.sh as i did before to ensure that my bin command would bind with filbert so i could run this easy shell script i use to sort my movies.
before i has always worked. this time the first try i wouldn't find the command bash. i figured i had to install.sh again to update the path to filebot.sh but now after its giving me another problem with i assume is because you dropped java 6.
What should I do to fix this issue in order to have my simple script to work once more?
i apologize in advance if its really obvious. i don't have much knowledge in script o java :oops: i could go back to 4.0 but i know that you have made a lot of improvement with that new version. i have java 7 55 installed on mac osx 10.9.2



Media-Center:~ Bnnoirjean$ filebot -rename /Volumes/Media\ Library/Unsorted/Movies/* --format "/Volumes/Media\ Library/Movies/{n} [{y}] {sdhd}" --db themoviedb -non-strict
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)

Re: filebot 4.1 RC3 Mac OSX

Posted: 16 May 2014, 17:42
by rednoah
You need to install Oracle Java 8. And then you need to make sure that the "java" command is bound to the new JRE and not the old Mac Java 6.

Re: filebot 4.1 RC3 Mac OSX

Posted: 16 May 2014, 18:13
by bnnoirjean
Thank you your reply. I'll install java 8 update 5 then!
Just how do I make sure that "java" command will be bound to the new JRE? do i need to edit create ~/.bash_profile to point where to Java 7 JRE or in that case java 8 JRE? would it be possible for you to tell me what that line would look like?

I know it must be frustrating to have to spoon feed people who aren't well verse in basic command even. I appreciate you taking the time to provide support.

Thank you.

Re: filebot 4.1 RC3 Mac OSX

Posted: 17 May 2014, 03:16
by bnnoirjean
I GOT IT!! Thank you for pointing me in the right direction! I had to export the new JRE and bind it on terminal now java -version command shows up as the correct one! The script now works! Amazing program you've got!

Re: filebot 4.1 RC3 Mac OSX

Posted: 16 Jun 2014, 18:13
by ErsinB
bnnoirjean wrote:I GOT IT!! Thank you for pointing me in the right direction! I had to export the new JRE and bind it on terminal now java -version command shows up as the correct one! The script now works! Amazing program you've got!
I'm having the same issue, but I don;t know how you fixed this. I installed the new JRE but I'm having no clues about binding this? What did you do exactly?

- How do you export the new JRE?
- How do you bind it on terminal?

Please help me with this.

Re: filebot 4.1 RC3 Mac OSX

Posted: 17 Jul 2014, 17:22
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.

Re: filebot 4.1 RC3 Mac OSX

Posted: 03 Aug 2014, 17:19
by srkinard
Only took 2 commands to switch the 1.6 to 1.7 on my 10.10 Yosemite dev box that had both 1.6 and 1.7 installed.

BEFORE:
->$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)

COMMANDS:
sudo rm /usr/bin/java
sudo ln -s /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java /usr/bin

AFTER:
->$ java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

Re: filebot 4.1 RC3 Mac OSX

Posted: 06 Aug 2014, 15:57
by fry
Confirmed. @srkinard's nifty trick worked.

Re: filebot 4.1 RC3 Mac OSX

Posted: 06 Aug 2014, 16:55
by rednoah
Some people said that installing Oracle JDK 8 also sets the PATH so that might be the easiest solution.

Re: filebot 4.1 RC3 Mac OSX

Posted: 27 Oct 2015, 17:28
by srkinard
On a clean OS X 10.11 El Capitan installation, you will have to install the JDK for this to work now.

The SIP (System Integrity Protection - aka Rootless) built into El Capitan will not allow you to run the 2 commands I previously listed regardless of elevating to root or not.

If you want to disable SIP (not recommended) you could then run the commands...I just installed the JDK on my system and no longer got the errors, and Java now points from 1.6 to 1.8