Page 1 of 1

OS X CLI with Filebot from cask

Posted: 06 Feb 2016, 16:22
by panda78
Hi all,
I have install FB with cask but i don t understand how to run amc script.
which file i have to run in terminal?


Thanks

Re: OS X CLI with Filebot from cask

Posted: 06 Feb 2016, 16:59
by rednoah
e.g. running the sysinfo script:

Code: Select all

filebot -script fn:sysinfo

Re: OS X CLI with Filebot from cask

Posted: 06 Feb 2016, 18:45
by panda78
rednoah wrote:e.g. running the sysinfo script:

Code: Select all

filebot -script fn:sysinfo

Code: Select all

iMac:~ Andrea$ filebot -script fn:sysinfo
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/filebot/Main : Unsupported major.minor version 52.0

Re: OS X CLI with Filebot from cask

Posted: 06 Feb 2016, 18:54
by rednoah
FAQ wrote:Q: When I try to start filebot it crashes immediately with an UnsupportedClassVersionError. What does that mean?
If you get an error like Exception in thread "main" java.lang.UnsupportedClassVersionError: net/filebot/Main : Unsupported major.minor version 52.0 it means that you're running Java 6 or 7 but Java 8 is required for running FileBot.
You either didn't do brew cask install java or something didn't work. Just install the latest Java 8 yourself.

Re: OS X CLI with Filebot from cask

Posted: 06 Feb 2016, 22:10
by panda78
java updated to 8 update 73 but i have the same error also the reboot

Re: OS X CLI with Filebot from cask

Posted: 07 Feb 2016, 04:23
by rednoah
What does java -version say?

Re: OS X CLI with Filebot from cask

Posted: 07 Feb 2016, 09:18
by panda78
rednoah wrote:What does java -version say?
Last login: Sat Feb 6 23:06:53 on ttys000
iMac:~ Andrea$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)
iMac:~ Andrea$

Re: OS X CLI with Filebot from cask

Posted: 07 Feb 2016, 09:34
by rednoah
Are you sure that you have correctly installed the jdk-8u74-macosx-x64.dmg package and restarted your computer?

You are using Java 6:

Code: Select all

java version "1.6.0_65"
You should be using Java 8:

Code: Select all

java version "1.8.0_74"
This thread might help:
http://stackoverflow.com/questions/2196 ... on-on-os-x

Re: OS X CLI with Filebot from cask

Posted: 07 Feb 2016, 10:15
by panda78
solved thanks

Code: Select all

iMac:~ Andrea$ filebot -script fn:sysinfo
FileBot 4.6 (r3052)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.73
7-Zip-JBinding: OK
Chromaprint: fpcalc version 1.1.0 (/opt/homebrew-cask/Caskroom/filebot/4.6/FileBot.app/Contents/MacOS/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.4.3
JRE: Java(TM) SE Runtime Environment 1.8.0_45
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 207 MB Used Memory
OS: Mac OS X (x86_64)
Package: APP
Data: /Users/Andrea/.filebot
uname: Darwin iMac.local 15.4.0 Darwin Kernel Version 15.4.0: Mon Jan 18 21:24:21 PST 2016; root:xnu-3248.40.166.0.1~6/RELEASE_X86_64 x86_64

--- UPDATE AVAILABLE: FileBot 4.6.1 (r3312) ---

Done ヾ(@⌒ー⌒@)ノ
from this result i see an available update. How can i do that with cask ?

Re: OS X CLI with Filebot from cask

Posted: 07 Feb 2016, 11:52
by rednoah
brew wrote:If you want to upgrade filebot you can run:

Code: Select all

brew update && brew cask install filebot
It seems you have used brew cask before, but some time ago, so you might need to run brew update:
https://github.com/caskroom/homebrew-ca ... new-system

Re: OS X CLI with Filebot from cask

Posted: 07 Feb 2016, 12:07
by panda78
rednoah wrote:
brew wrote:If you want to upgrade filebot you can run:

Code: Select all

brew update && brew cask install filebot
It seems you have used brew cask before, but some time ago, so you might need to run brew update:
https://github.com/caskroom/homebrew-ca ... new-system

i have this error ?


Last login: Sun Feb 7 13:00:47 on ttys001
iMac:~ Andrea$ brew update && brew cask install filebot
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: Failure while executing: git checkout -q master

Re: OS X CLI with Filebot from cask

Posted: 07 Feb 2016, 12:14
by rednoah
Google says your xcode tools aren't set up properly:

Code: Select all

sudo xcode-select --install
@see http://stackoverflow.com/a/33012317/1514467

Re: OS X CLI with Filebot from cask

Posted: 07 Feb 2016, 14:15
by panda78
rednoah wrote:Google says your xcode tools aren't set up properly:

Code: Select all

sudo xcode-select --install
@see http://stackoverflow.com/a/33012317/1514467

solved thanks