Page 1 of 1

Linux Mint unable to run filebot

Posted: 04 Apr 2019, 14:57
by chgchg
Hello,
Here are some days that I can not launch filebot:

Code: Select all

 ~ $ filebot
Error: LinkageError occurred while loading main class net.filebot.Main
	java.lang.UnsupportedClassVersionError: net/filebot/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 54.0
 ~ $ filebot -script fn:sysinfo
Error: LinkageError occurred while loading main class net.filebot.Main
	java.lang.UnsupportedClassVersionError: net/filebot/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 54.0
 ~ $ lsb_release -a
LSB Version:	core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID:	LinuxMint
Description:	Linux Mint 19.1 Tessa
Release:	19.1
Codename:	tessa
 ~ $ 
How to proceed ?
Thank you

Re: Linux Mint unable to run filebot

Posted: 04 Apr 2019, 18:30
by rednoah
You'll need to install either the JDK 11 build or the JDK 8 build depending on your OS version and available dependencies.

Re: Linux Mint unable to run filebot

Posted: 09 Apr 2019, 19:51
by soulinferno
I stumbled upon this exact same error. This is due to older openjdk11 sources in the actual linux mint tessa version. If you wait long enough it should work again after some java updates.

Temp fix is to install latest version of openjdk from: https://jdk.java.net/12/

If you need advice how and where to move files you could follow path according to: (set the downloaded java version and folders accordingly)
https://askubuntu.com/questions/56104/h ... 7-8-or-jre

Also Oracle Java 12 version should work also: https://www.oracle.com/technetwork/java ... 95953.html

Re: Linux Mint unable to run filebot

Posted: 18 Apr 2019, 03:36
by ben2talk
Using latest linux mint, and needing integration with my deluge 'filebot' addon, I found the solution to be a script:

Code: Select all

#!/bin/sh -xu

# use JDK 11  build for Debian Buster / Ubuntu 18.10 or higher, and JDK 8 build otherwise
if apt-cache show openjfx | grep "Version: 8"; then
	REPO="deb https://get.filebot.net/deb/ universal-jdk8 main"
else
	REPO="deb https://get.filebot.net/deb/ universal main"
fi

# 1. Import signing keys
sudo apt-key adv --fetch-keys "https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub"

# 2. Add deb repository to sources.list
echo "$REPO" | sudo tee /etc/apt/sources.list.d/filebot.list

# 3. Update package index
sudo apt-get update

# 4. Install FileBot and its dependencies
sudo apt-get install filebot
Saved in my /home/ben/Admin/scripts folder, execute... then run 'clean' in terminal to remove warnings about the cached version.

Much more pleasant than starting to mess with JDK - as I'm not very clever.

Re: Linux Mint unable to run filebot

Posted: 18 Apr 2019, 05:17
by rednoah
Ubuntu, Mint & friends are all Debian based, so the Debian instructions should work just the same:
https://www.filebot.net/forums/viewtopic.php?f=11&t=6028