OS X CLI with Filebot from cask

Support for macOS users
Post Reply
panda78
Posts: 38
Joined: 22 Jan 2016, 18:45

OS X CLI with Filebot from cask

Post 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
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: OS X CLI with Filebot from cask

Post by rednoah »

e.g. running the sysinfo script:

Code: Select all

filebot -script fn:sysinfo
:idea: Please read the FAQ and How to Request Help.
panda78
Posts: 38
Joined: 22 Jan 2016, 18:45

Re: OS X CLI with Filebot from cask

Post 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
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: OS X CLI with Filebot from cask

Post 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.
:idea: Please read the FAQ and How to Request Help.
panda78
Posts: 38
Joined: 22 Jan 2016, 18:45

Re: OS X CLI with Filebot from cask

Post by panda78 »

java updated to 8 update 73 but i have the same error also the reboot
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: OS X CLI with Filebot from cask

Post by rednoah »

What does java -version say?
:idea: Please read the FAQ and How to Request Help.
panda78
Posts: 38
Joined: 22 Jan 2016, 18:45

Re: OS X CLI with Filebot from cask

Post 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$
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: OS X CLI with Filebot from cask

Post 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
:idea: Please read the FAQ and How to Request Help.
panda78
Posts: 38
Joined: 22 Jan 2016, 18:45

Re: OS X CLI with Filebot from cask

Post 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 ?
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: OS X CLI with Filebot from cask

Post 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
:idea: Please read the FAQ and How to Request Help.
panda78
Posts: 38
Joined: 22 Jan 2016, 18:45

Re: OS X CLI with Filebot from cask

Post 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
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: OS X CLI with Filebot from cask

Post 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
:idea: Please read the FAQ and How to Request Help.
panda78
Posts: 38
Joined: 22 Jan 2016, 18:45

Re: OS X CLI with Filebot from cask

Post 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
Post Reply