Support for Ubuntu and other Desktop Linux distributions
stevef9432203
Posts: 9 Joined: 05 Jan 2020, 06:06
Post
by stevef9432203 » 08 Apr 2020, 02:43
On Fedora 31 with dependancy installed.
Find Titles ok, Now hit Rename - Get this Stuff
Code: Select all
[stevef@pita-24 ~]$ filebot
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 (file:/usr/share/filebot/jar/jaxb-impl.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector$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
MOVE: ClassNotFoundException: javafx.concurrent.Worker
java.lang.NoClassDefFoundError: javafx/concurrent/Worker
at net.filebot.ui.rename.RenameAction.lambda$actionPerformed$1(Unknown Source)
at net.filebot.util.ui.SwingUI.withWaitCursor(Unknown Source)
at net.filebot.ui.rename.RenameAction.actionPerformed(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javafx.concurrent.Worker
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
... 3 more
Sadly openjfx is installed
Code: Select all
[stevef@pita-24 ~]$ sudo dnf list installed | grep openjfx
openjfx.x86_64 8.0.202-8.b07.fc31 @fedora
openjfx-devel.x86_64 8.0.202-8.b07.fc31 @fedora
openjfx-javadoc.x86_64 8.0.202-8.b07.fc31
Beyond my Paygrade in java
rednoah
The Source
Posts: 23927 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 08 Apr 2020, 04:34
This message indicates that JavaFX is not installed, or that the JavaFX package for your platform didn't set it up correctly:
Code: Select all
java.lang.NoClassDefFoundError: javafx/concurrent/Worker
If you get this error with FileBot 4.9.0
(Java 8) then you will likely also get it with FileBot 4.8.5
(Java 8) and so on. If you have recently installed Java 11 and set it to default, then this could explain the issue.
How did you install FileBot? What does
filebot -script fn:sysinfo say?
What does the
rpm.sh install script say?
rednoah wrote: ↑ 04 Apr 2019, 07:10
The
installer/rpm.sh will add the repository and install FileBot for you:
Code: Select all
bash -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/rpm.sh)"
stevef9432203
Posts: 9 Joined: 05 Jan 2020, 06:06
Post
by stevef9432203 » 09 Apr 2020, 03:07
Code: Select all
stevef@pita-24 ~]$ filebot -script fn:sysinfo
FileBot 4.9.0 (r7234)
JNA Native: 6.1.0
MediaInfo: 19.09
p7zip: p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,48 CPUs Genuine Intel(R) CPU @ 2.40GHz (306F1),ASM,AES-NI)
unrar: UNRAR 5.80 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/1001/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: 48 Core / 32 GB Max Memory / 88 MB Used Memory
OS: Linux (amd64)
HW: Linux pita-24.lan 5.5.15-200.fc31.x86_64 #1 SMP Thu Apr 2 19:16:17 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.ReflectionUtils (file:/usr/share/filebot/jar/groovy.jar) to method sun.nio.fs.UnixFileSystem.getFileStores()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.ReflectionUtils
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
STORAGE: ext4 [/] @ 25 GB | ext4 [/home/stevef/.local/Extra] @ 933 GB | ext4 [/media/work] @ 3.2 TB | ext4 [/media/probox1] @ 2.5 TB | ext4 [/media/probox4] @ 4.3 TB | ext4 [/media/probox3] @ 1.9 TB | ext4 [/media/probox2] @ 3.3 TB
DATA: /home/stevef/.filebot
Package: RPM
License: FileBot License P10000524 (Valid-Until: 2020-11-04)
Done ヾ(@⌒ー⌒@)ノ
stevef9432203
Posts: 9 Joined: 05 Jan 2020, 06:06
Post
by stevef9432203 » 09 Apr 2020, 03:16
Code: Select all
^K I A fbinst.sh (Modified)(sh) Row 19 Col 1
#!/bin/sh -xu
# 1. Add repository
sudo dnf config-manager --add-repo https://raw.githubusercontent.com/filebot/plu
# 2. Enable repository
sudo dnf config-manager --set-enabled filebot --dump
# 3. Install dependencies
sudo dnf install java-1.8.0-openjdk java-1.8.0-openjdk-openjfx
sudo dnf install jna
sudo dnf install mediainfo p7zip p7zip-plugins
# 4. Install FileBot
sudo dnf install filebot
# 5. Test Run
filebot -script fn:sysinfo
File fbinst.sh saved
[stevef@pita-24 Desktop]$ dnf remove filebot
Error: This command has to be run with superuser privileges (under the root user on most systems).
[stevef@pita-24 Desktop]$ sudo dnf remove filebot
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Removing:
filebot noarch 4.9.0-universal.jdk8 @filebot 123 M
Transaction Summary
================================================================================
Remove 1 Package
Freed space: 123 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: filebot-4.9.0-universal.jdk8.noarch 1/1
Erasing : filebot-4.9.0-universal.jdk8.noarch 1/1
Running scriptlet: filebot-4.9.0-universal.jdk8.noarch 1/1
Verifying : filebot-4.9.0-universal.jdk8.noarch 1/1
Removed:
filebot-4.9.0-universal.jdk8.noarch
Complete!
[stevef@pita-24 Desktop]$ bash ./fbinst.sh
Adding repo from: https://raw.githubusercontent.com/filebot/plugins/master/yum/universal-jdk8.repo
================================ repo: filebot =================================
[filebot]
bandwidth = 0
baseurl = https://get.filebot.net/rpm/universal-jdk8/noarch
cachedir = /var/cache/dnf
cost = 1000
countme = 0
deltarpm = 1
deltarpm_percentage = 75
enabled = 0
enabled_metadata = 1
enablegroups = 1
exclude =
excludepkgs =
fastestmirror = 0
gpgcheck = 0
gpgkey = https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub
includepkgs =
ip_resolve = whatever
max_parallel_downloads = 3
mediaid =
metadata_expire = 172800
minrate = 1000
module_hotfixes = 0
name = filebot
password =
priority = 99
protected_packages = dnf, sudo, systemd, systemd-udev, dnf
proxy =
proxy_auth_method = any
repo_gpgcheck = 0
retries = 10
skip_if_unavailable = 1
sslcacert =
sslclientcert =
sslclientkey =
sslverify = 1
throttle = 0
timeout = 30
type =
user_agent = libdnf (Fedora 31; matecompiz; Linux.x86_64)
username =
filebot 3.6 kB/s | 1.7 kB 00:00
Package java-1.8.0-openjdk-1:1.8.0.242.b08-0.fc31.x86_64 is already installed.
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Installing:
java-1.8.0-openjdk-openjfx x86_64 1:1.8.0.242.b08-0.fc31 updates 34 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 34 k
Installed size: 0
Is this ok [y/N]: y
Downloading Packages:
java-1.8.0-openjdk-openjfx-1.8.0.242.b08-0.fc31 93 kB/s | 34 kB 00:00
--------------------------------------------------------------------------------
Total 32 kB/s | 34 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : java-1.8.0-openjdk-openjfx-1:1.8.0.242.b08-0.fc31.x8 1/1
Running scriptlet: java-1.8.0-openjdk-openjfx-1:1.8.0.242.b08-0.fc31.x8 1/1
Verifying : java-1.8.0-openjdk-openjfx-1:1.8.0.242.b08-0.fc31.x8 1/1
Installed:
java-1.8.0-openjdk-openjfx-1:1.8.0.242.b08-0.fc31.x86_64
Complete!
Last metadata expiration check: 0:00:16 ago on Wed 08 Apr 2020 08:12:14 PM PDT.
Package jna-5.4.0-1.fc31.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Last metadata expiration check: 0:00:23 ago on Wed 08 Apr 2020 08:12:14 PM PDT.
Package mediainfo-19.09-1.fc31.x86_64 is already installed.
Package p7zip-16.02-15.fc31.x86_64 is already installed.
Package p7zip-plugins-16.02-15.fc31.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Last metadata expiration check: 0:00:29 ago on Wed 08 Apr 2020 08:12:14 PM PDT.
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Installing:
filebot noarch 4.9.0-universal.jdk8 filebot 25 M
Transaction Summary
================================================================================
Install 1 Package
Total download size: 25 M
Installed size: 0
Is this ok [y/N]: y
Downloading Packages:
FileBot_4.9.0_universal-jdk8.rpm 8.6 MB/s | 25 MB 00:02
--------------------------------------------------------------------------------
Total 8.6 MB/s | 25 MB 00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : filebot-4.9.0-universal.jdk8.noarch 1/1
Running scriptlet: filebot-4.9.0-universal.jdk8.noarch 1/1
Verifying : filebot-4.9.0-universal.jdk8.noarch 1/1
Installed:
filebot-4.9.0-universal.jdk8.noarch
Complete!
FileBot 4.9.0 (r7234)
JNA Native: 6.1.0
MediaInfo: 19.09
p7zip: p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,48 CPUs Genuine Intel(R) CPU @ 2.40GHz (306F1),ASM,AES-NI)
unrar: UNRAR 5.80 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/1001/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: 48 Core / 32 GB Max Memory / 65 MB Used Memory
OS: Linux (amd64)
HW: Linux pita-24.lan 5.5.15-200.fc31.x86_64 #1 SMP Thu Apr 2 19:16:17 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.ReflectionUtils (file:/usr/share/filebot/jar/groovy.jar) to method sun.nio.fs.UnixFileSystem.getFileStores()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.ReflectionUtils
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
STORAGE: ext4 [/] @ 25 GB | ext4 [/home/stevef/.local/Extra] @ 933 GB | ext4 [/media/work] @ 3.2 TB | ext4 [/media/probox1] @ 2.5 TB | ext4 [/media/probox4] @ 4.3 TB | ext4 [/media/probox3] @ 1.9 TB | ext4 [/media/probox2] @ 3.3 TB
DATA: /home/stevef/.filebot
Package: RPM
License: FileBot License P10000524 (Valid-Until: 2020-11-04)
Done ヾ(@⌒ー⌒@)ノ
[stevef@pita-24 Desktop]$
stevef9432203
Posts: 9 Joined: 05 Jan 2020, 06:06
Post
by stevef9432203 » 09 Apr 2020, 03:19
So uninstalled filebot and ran your install Script as above shows
rednoah
The Source
Posts: 23927 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 09 Apr 2020, 05:39
You're running Java 11:
Code: Select all
JRE: OpenJDK Runtime Environment 11.0.6
Please uninstall Java 11 or higher, and only install Java 8, or make Java 8 default. You can run
java -version to see which Java version is used by default.
You can switch between alternatives like so:
Making FileBot work with Java 11 on Fedora is currently not possible, because Fedora doesn't provide OpenJFX 11 packages.
stevef9432203
Posts: 9 Joined: 05 Jan 2020, 06:06
Post
by stevef9432203 » 10 Apr 2020, 04:49
Ok I Got it Fixed. used this Script to change path
Code: Select all
sudo ./update-java-alternatives.sh /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.fc31.x86_64/
Code: Select all
# cat update-java-alternatives
#!/bin/bash
if [ -z "$1" ]; then
echo "No argument supplied"
echo "Usage: ./update-alternatives-java /path/to/jdk"
exit 0
fi
JDK_HOME=${1%/}
if [ -f "$JDK_HOME/bin/javac" ]; then
echo "Using JDK: $JDK_HOME"
else
echo "The provided path to JDK seems to be invalid"
exit 0
fi
# create an array with all files inside $JDK_HOME/bin
bin_arr=($(ls $JDK_HOME/bin))
## loop through commands arr
for i in "${bin_arr[@]}"
do
read -p "Do you want to update $i (y/n)? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]; then
sudo update-alternatives --install /usr/bin/$i $i $JDK_HOME/bin/$i 1
sudo update-alternatives --set $i $JDK_HOME/bin/$i
fi
done