FileBot_4.9.5-portable-jdk8.tar.xz Doesn't Work with Java 8

All your suggestions, requests and ideas for future development
Post Reply
HarryMuscle
Posts: 34
Joined: 06 Jan 2022, 22:40

FileBot_4.9.5-portable-jdk8.tar.xz Doesn't Work with Java 8

Post by HarryMuscle »

I have Java 8 installed and I just tried the beta version of FileBot using the file named FileBot_4.9.5-portable-jdk8.tar.xz, however, I got the following error:

Code: Select all

Initialize UserHome folder: /config/filebot/data/0
Initialize Cache folder: /config/filebot/data/0/cache
Initialize Logs folder: /config/filebot/data/0/logs
Initialize TemporaryFiles folder: /config/filebot/data/0/tmp
Initialize new disk cache: /config/filebot/data/0/cache/0
An unexpected error occurred during startup: java.lang.UnsupportedClassVersionError: com/github/benmanes/caffeine/cache/Caffeine 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 52.0
java.lang.UnsupportedClassVersionError: com/github/benmanes/caffeine/cache/Caffeine 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 52.0
        at net.filebot.MemoryCache.forMinutes(Unknown Source)
        at net.filebot.WebServices$TMDbMovieClient.<init>(Unknown Source)
        at net.filebot.WebServices.<clinit>(Unknown Source)
        at net.filebot.Main.main(Unknown Source)

Uncaught Exception in AWT-EventQueue-0: java.lang.UnsupportedClassVersionError: com/github/benmanes/caffeine/cache/Caffeine 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 52.0
java.lang.UnsupportedClassVersionError: com/github/benmanes/caffeine/cache/Caffeine 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 52.0
        at net.filebot.MemoryCache.forMinutes(Unknown Source)
        at net.filebot.ResourceManager.<clinit>(Unknown Source)
        at net.filebot.ui.NotificationHandler.lambda$publish$0(Unknown Source)
In case it helps, here's the output of "java -version"

Code: Select all

openjdk version "1.8.0_275"
OpenJDK Runtime Environment (IcedTea 3.17.1) (Alpine 8.275.01-r0)
OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)
Just wondering if this is on purpose and JDK8 is no longer supported (if that is the case may I suggest using a different file name to reflect the minimum JDK version), or is this a bug and the version contained in the file in question should indeed work with Java 8.

Thanks,
Harry
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot_4.9.5-portable-jdk8.tar.xz Doesn't Work with Java 8

Post by rednoah »

Code: Select all

java.lang.UnsupportedClassVersionError: com/github/benmanes/caffeine/cache/Caffeine
        at net.filebot.MemoryCache.forMinutes
Good catch. Looks like one of our dependencies dropped JDK 8 support.


:arrow: Maybe fixed with FileBot r9092.
:idea: Please read the FAQ and How to Request Help.
Djoss
Posts: 22
Joined: 30 Jul 2018, 17:24

Re: FileBot_4.9.5-portable-jdk8.tar.xz Doesn't Work with Java 8

Post by Djoss »

I get similar problem with r9102:

Code: Select all

Initialize Cache folder: /config/cache
Initialize Logs folder: /config/logs
Initialize TemporaryFiles folder: /config/tmp
Initialize new disk cache: /config/cache/0
FileBot 4.9.5 (r9102) JDK8
JNA Native: 6.1.0
MediaInfo: 21.03
Tools: fpcalc/1.4.3 7z/16.02 unrar/6.02
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2022-01-20 (r791)
Groovy: 3.0.9
JRE: OpenJDK Runtime Environment 1.8.0_302
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 12 Core / 7 GB Max Memory / 90 MB Used Memory
OS: Linux (amd64)
HW: Linux 235e8ea3dca9 4.15.0-166-generic #174-Ubuntu SMP Wed Dec 8 19:07:44 UTC 2021 x86_64 GNU/Linux
CPU/MEM: Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz [MemTotal: 33 GB | MemFree: 4.9 GB | MemAvailable: 31 GB | SwapCached: 1.1 MB | SwapTotal: 17 GB | SwapFree: 17 GB]
STORAGE: aufs [/] @ 54 GB | ext4 [/config] @ 54 GB | ext4 [/output] @ 54 GB | ext4 [/storage] @ 54 GB | ext4 [/watch] @ 54 GB
USER: app
DATA: /config
Package: DOCKER
License: UNREGISTERED
Done ヾ(@⌒ー⌒@)ノ
Uncaught Exception in AWT-EventQueue-0: java.lang.UnsupportedClassVersionError: net/miginfocom/swing/MigLayout 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 52.0
java.lang.UnsupportedClassVersionError: net/miginfocom/swing/MigLayout 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 52.0
	at net.filebot.ui.MainFrame.<init>(Unknown Source)
	at net.filebot.Main.startUserInterface(Unknown Source)
	at net.filebot.Main.lambda$main$3(Unknown Source)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot_4.9.5-portable-jdk8.tar.xz Doesn't Work with Java 8

Post by rednoah »

Code: Select all

java.lang.UnsupportedClassVersionError: net/miginfocom/swing/MigLayout
	at net.filebot.ui.MainFrame.<init>
	at net.filebot.Main.startUserInterface
Sorry. This is a "won't fix" because you're launching the GUI application, and MigLayout classes are only used by the GUI but not the CLI. The JDK8 builds are meant for outdated headless machines (i.e. CLI only) that cannot be updated. Perhaps it is time to drop JDK8 support altogether for the sake of simplicity...


:arrow: If you're using the GUI, please use the latest JDK.


:arrow: If you're using Debian x86_64 then you can use the *_amd64.deb package which has all the native dependencies - including the latest JRE - built-in.



EDIT:

FileBot r9104 adds -Djava.awt.headless=true to the startup configuration of the JDK8 builds so that it will always run in headless mode (i.e. print man page if filebot is called without arguments; instead of launching the GUI).
:idea: Please read the FAQ and How to Request Help.
Djoss
Posts: 22
Joined: 30 Jul 2018, 17:24

Re: FileBot_4.9.5-portable-jdk8.tar.xz Doesn't Work with Java 8

Post by Djoss »

Ok, thanks for clarifications !
Post Reply