[Linux Mint 19.3] NoClassDefFoundError: javafx/concurrent/Task

All your suggestions, requests and ideas for future development
Post Reply
360andy
Posts: 4
Joined: 21 Mar 2020, 23:09

[Linux Mint 19.3] NoClassDefFoundError: javafx/concurrent/Task

Post by 360andy »

Error received after clicking on rename: MOVE: ClassNotFoundException: jav.concurrent.Task

Code: Select all

filebot -script fn:sysinfo
Current application revision (r7234) does not match cache revision (r6224): reset cache
Initialize new disk cache: /home/andy/.filebot/cache/1
FileBot 4.9.0 (r7234)
JNA Native: 5.2.0
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load amd64 (64-bit) native library libmediainfo.so: Unable to load library 'zen': Native library (linux-x86-64/libzen.so) not found in resource path (/usr/share/filebot/jar/filebot.jar)
p7zip: p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (306C3),ASM,AES-NI)
unrar: UNRAR 5.50 freeware
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
GVFS: PlatformGVFS [/run/user/1000/gvfs]
Script Bundle: 2020-03-16 (r625)
Groovy: 3.0.2
JRE: OpenJDK Runtime Environment 11.0.6
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 4.2 GB Max Memory / 63 MB Used Memory
OS: Linux (amd64)
HW: Linux andy-OptiPlex-7020 5.3.0-42-generic #34~18.04.1-Ubuntu SMP Fri Feb 28 13:42:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
STORAGE: ext4 [/] @ 199 GB | cifs [/media/MyCloud/Music] @ 2.3 TB | cifs [/media/MyCloud/Video] @ 2.3 TB | fuse [/home/andy/pCloudDrive] @ 505 GB | ext4 [/media/andy/Wheater] @ 751 GB
DATA: /home/andy/.filebot
Package: DEB
Activate License [P11953043] on [Mon Mar 23 13:19:28 MDT 2020]
License: FileBot License P11953043 (Valid-Until: 2021-03-05)
Thanks for your help

Andy
User avatar
rednoah
The Source
Posts: 18995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Linux mint 19.3 filebot 4.9 not renaming files

Post by rednoah »

Did you install all the dependencies?
https://www.filebot.net/linux/apt.html


:idea: NoClassDefFoundError: javafx/concurrent/Task indicates that OpenJFX is missing.


:idea: If you have disabled --install-recommends on your system, then you need to specify --install-recommends when installing filebot via apt.
:idea: Please read the FAQ and How to Request Help.
360andy
Posts: 4
Joined: 21 Mar 2020, 23:09

Re: [Linux Mint 19.3] NoClassDefFoundError: javafx/concurrent/Task

Post by 360andy »

I will try the apt install. I installed using the 64 bit deb file.

I will keep you informed if the apt works

Thanks

Andy
360andy
Posts: 4
Joined: 21 Mar 2020, 23:09

Re: [Linux Mint 19.3] NoClassDefFoundError: javafx/concurrent/Task

Post by 360andy »

Still no luck. What next? Can I uninstall 4.9 and go back to earlier version
kim
Power User
Posts: 1027
Joined: 15 May 2014, 16:17

Re: [Linux Mint 19.3] NoClassDefFoundError: javafx/concurrent/Task

Post by kim »

Try installing JDK 13.0.2

btw: i think "JNA Native: 5.2.0" is from old version... did you only copy the jar ?
User avatar
rednoah
The Source
Posts: 18995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Linux Mint 19.3] NoClassDefFoundError: javafx/concurrent/Task

Post by rednoah »

360andy wrote: 26 Mar 2020, 23:31 Still no luck. What next? Can I uninstall 4.9 and go back to earlier version
You could try. But the dependencies haven't changed, so it's unlikely to make a difference.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 18995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Linux Mint 19.3] NoClassDefFoundError: javafx/concurrent/Task

Post by rednoah »

kim wrote: 26 Mar 2020, 23:59 btw: i think "JNA Native: 5.2.0" is from old version... did you only copy the jar ?
The universal deb package is platform-independent, and thus relies on the standard package repository for its native dependencies including JNA, i.e. it's using the JNA installation proved by the Linux distribution.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 18995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Linux Mint 19.3] NoClassDefFoundError: javafx/concurrent/Task

Post by rednoah »

360andy wrote: 26 Mar 2020, 23:11 I will try the apt install. I installed using the 64 bit deb file.
Please run this command and post the complete console output:

Code: Select all

bash -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/deb.sh)"
:idea: Please read the FAQ and How to Request Help.
PGCD
Posts: 1
Joined: 20 Jun 2020, 02:55

Re: [Linux Mint 19.3] NoClassDefFoundError: javafx/concurrent/Task

Post by PGCD »

Hey there,
I got the same issue with ubuntu 18.04, and everything from filebot -script fn:sysinfo was right (same as yours).
The issue was that for whatever reason filebot was not able to properly locate openfx.
So what you can try is the following:

Code: Select all

dpkg-query -L openfx 
You should get something with a line like this :
/usr/share/openjfx/lib

Then run the same command for filebot:

Code: Select all

dpkg-query -L filebot 
And locate the filebot.jar file (probably something like /usr/share/filebot/jar/filebot.jar

Subsequently you can try this command and see if it solve your problem:

Code: Select all

java --module-path /usr/share/openjfx/lib --add-modules=javafx.controls,javafx.fxml,javafx.base,javafx.media,javafx.web,javafx.swing -jar '/usr/share/filebot/jar/filebot.jar'
replacing /usr/share/openjfx/lib and /usr/share/filebot/jar/filebot.jar by your paths found previously.

Then if you want to make the change everytime you launch filebot, you need to modify the filebot.desktop file (mine is here: /usr/share/applications/filebot.desktop) and replace the line Exec=filebot %F by the line :

Code: Select all

Exec=java --module-path /usr/share/openjfx/lib --add-modules=javafx.controls,javafx.fxml,javafx.base,javafx.media,javafx.web,javafx.swing -jar '/usr/share/filebot/jar/filebot.jar' %F
User avatar
rednoah
The Source
Posts: 18995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Linux Mint 19.3] NoClassDefFoundError: javafx/concurrent/Task

Post by rednoah »

The filebot.sh startup script already does all of that. No?

Code: Select all

cat `where filebot`
:idea: Make sure to stick to the OpenJDK 11 / OpenJFX 11 repository: https://www.filebot.net/linux/apt.html
:idea: Please read the FAQ and How to Request Help.
Post Reply