Linux Mint unable to run filebot

Support for Ubuntu and other Desktop Linux distributions
Post Reply
chgchg
Posts: 1
Joined: 04 Apr 2019, 14:40

Linux Mint unable to run filebot

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

Re: Linux Mint unable to run filebot

Post 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.
:idea: Please read the FAQ and How to Request Help.
soulinferno
Posts: 11
Joined: 18 Jun 2018, 09:47

Re: Linux Mint unable to run filebot

Post 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
ben2talk
Posts: 6
Joined: 12 Mar 2018, 17:00

Re: Linux Mint unable to run filebot

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

Re: Linux Mint unable to run filebot

Post 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
:idea: Please read the FAQ and How to Request Help.
Post Reply