Page 1 of 1

Failed to initialize JavaFX regardless of Java version

Posted: 17 Oct 2018, 01:05
by nothing919
I have been trying on and off to get Filebot to work for some time. Today I installed via wget and thought I had it, but, no after buying a license when opening filebot it throws the JavaFX initialization error regardless of Whether using openJdk8 or any other version. To include installing the current Oracle version of the development kit and openJFX which is the only version available on the Arch Linux AUR. I am a firm believer in FOSS software so for me to buy a license says I find a piece of software useful and am willing to put a few bucks towards it. At this point I'm out six bucks, but, if it would work I would get a lifetime subscription. I have been using this program for several years prior to migrating to Linux in 2015 and miss it greatly. The only other program I can get to work is TMM and that just isn't as versatile about detecting titles to be renamed. e.g. reading absolute numbering and translating to s1e11 for instance. Annoying as hell when you are renaming shows with hundreds of episodes that end up with the first digit as the season instead. Please advise.

Cross posted to the install thread because of possible relavince.

Posted: 17 Oct 2018, 14:03
by nothing919
Is it throwing the error because it is looking for the package name openjdk-8-jre on my system and not seeing the name structure jre8-openjdk? Or is it looking for the actual Java components and not finding them? I'm guessing it is the naming structure.

Re: Failed to initialize JavaFX regardless of Java version

Posted: 17 Oct 2018, 14:21
by rednoah
I'm not using Arch, so I'm not sure how to install the necessary dependencies on Arch Linux. The portable package is mostly used on embedded devices, so getting the command-line tools working is really just at matter of installing Java 8 and making sure that the java command works.

On Debian, the easiest way is to install Oracle JDK 8 which includes JavaFX and thus works out of the box. Not sure if there's Arch packages for the Oracle JDK.


PS: I'm looking into official Arch support and packaging for next release, but that'll probably take another 1-2 months.

Re: Failed to initialize JavaFX regardless of Java version

Posted: 17 Oct 2018, 15:01
by nothing919
checking filebot's status reveals this:

Code: Select all

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/home/lazarus/filebot-portable/jar/groovy.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
FileBot 4.8.2 (r5789)
JNA Native: 5.2.2
MediaInfo: 18.05
7-Zip-JBinding: 9.20
Chromaprint: 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-10-05 (r536)
Groovy: 2.5.1
JRE: OpenJDK Runtime Environment 10.0.2
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 61 MB Used Memory
OS: Linux (amd64)
HW: Linux Minerva 4.18.14-arch1-1-ARCH #1 SMP PREEMPT Sat Oct 13 13:42:37 UTC 2018 x86_64 GNU/Linux
DATA: /home/lazarus/filebot-portable/data/root
Package: TAR
License: FileBot License P5931758 (Valid-Until: 2019-10-16)
Done ヾ(@⌒ー⌒@)ノ
I had java 8 earlier, I just checked to see if Java 10 would work since they are backwards compatible. This is what it throws with 8

Code: Select all

FileBot 4.8.2 (r5789)
JNA Native: 5.2.2
MediaInfo: 18.05
7-Zip-JBinding: 9.20
Chromaprint: 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-10-05 (r536)
Groovy: 2.5.1
JRE: OpenJDK Runtime Environment 1.8.0_181
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 16 MB Used Memory
OS: Linux (amd64)
HW: Linux Minerva 4.18.14-arch1-1-ARCH #1 SMP PREEMPT Sat Oct 13 13:42:37 UTC 2018 x86_64 GNU/Linux
DATA: /home/lazarus/filebot-portable/data/root
Package: TAR
License: FileBot License P5931758 (Valid-Until: 2019-10-16)
Done ヾ(@⌒ー⌒@)ノ
Still getting the initialize error though.

Re: Failed to initialize JavaFX regardless of Java version

Posted: 17 Oct 2018, 15:02
by nothing919

Code: Select all

[lazarus@Minerva ~]$ filebot
Failed to initialize JavaFX
java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
	at net.filebot.util.ui.SwingUI.initJavaFX(SwingUI.java:519)
	at net.filebot.Main.onStart(Main.java:191)
	at net.filebot.Main.lambda$null$1(Main.java:161)
	at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(SwingUI.java:435)
	at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(SwingUI.java:425)
Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel
	... 5 more

Re: Failed to initialize JavaFX regardless of Java version

Posted: 17 Oct 2018, 15:07
by nothing919
The package for Oracle JDK 8 is on the AUR, but, none of the end of support versions work anymore, because they download directly from Oracle and you have to have an account and sign in. Yay jerks.

Re: Failed to initialize JavaFX regardless of Java version

Posted: 17 Oct 2018, 15:13
by rednoah
So you're getting:

Code: Select all

java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
even though you have installed OpenJFX?

Code: Select all

https://www.archlinux.org/packages/extra/x86_64/java-openjfx/

Re: Failed to initialize JavaFX regardless of Java version

Posted: 17 Oct 2018, 15:20
by nothing919
Okay. Your question fixed the problem. On arch you have to install the package openJDK8 and openJFX both explicitly for filebot to work. I thought they didn't split JFX off until version 11 so it was included in the JDK8. I was apparently wrong.