Page 1 of 1
java.io.FileNotFoundException: ~/.sdkman/candidates/java/17.0.1-librca/lib/tzdb.dat (No such file or directory)
Posted: 28 Oct 2023, 11:57
by arahknxs
I had a filebot based script that was failing due to my licence expiring.
I eventually got around to buying another licence. I went to add it, with:
I then pasted my licence key, and got this:
Code: Select all
-----END PGP SIGNATURE-----
* Please wait...
Unknown Error: java.lang.Error: java.io.FileNotFoundException: /home/arahknxs/.sdkman/candidates/java/17.0.1-librca/lib/tzdb.dat (No such file or directory)
I tried and filespot still fails due to being unlicenced.
I have done some googling on the error and can't find anything useful.
Can you please share anything I should be trying, to solve this?
Re: Can't activate - java error
Posted: 28 Oct 2023, 13:32
by rednoah

Which
Linux are you using? How did you install
java? The JRE runtime that you have currently installed / configured seems to be missing important files. It's also outdated. Just install the latest
java and see what happens.

What does
filebot -script fn:sysinfo say?

If you're using
x86_64 Debian then you can use the
FileBot_*_amd64.deb package which includes all native dependencies.
EDIT:

I did a quick check and all the
Liberica JDK packages do include a
lib/tzdb.dat file. You seem to have a partial / incomplete JDK installation.
Re: java.io.FileNotFoundException: ~/.sdkman/candidates/java/17.0.1-librca/lib/tzdb.dat (No such file or directory)
Posted: 28 Oct 2023, 14:19
by arahknxs
Thanks for the quick reply.
I am using Raspbian on a pi.
Output of filebot -script fn:sysinfo:
Code: Select all
arahknxs@flyforanrpi:~ $ filebot -script fn:sysinfo
FileBot 5.1.1 (r9982)
JNA Native: 5.2.2
MediaInfo: 18.12
Tools: fpcalc/1.4.3 7z/16.02 unrar/0.0.1
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2023-09-10 (r939)
Groovy: 4.0.14
JRE: OpenJDK Runtime Environment 17.0.1
JVM: 32-Bit OpenJDK Server VM
CPU/MEM: 4 Core / 1.1 GB Max Memory / 23 MB Used Memory
OS: Linux (arm)
HW: Linux flyforanrpi 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux
CPU/MEM: : ARMv7 Processor rev 3 (v7l) / : BCM2711 / MemTotal: 8 GB / MemFree: 157 MB / MemAvailable: 7 GB
STORAGE: ext4 [/] @ 105 GB | ext4 [/DATA] @ 4.7 TB
UID/GID: uid=1001(arahknxs) gid=1001(arahknxs) groups=1001(arahknxs),27(sudo)
DATA: /home/arahknxs/.filebot
Package: DEB
License: UNREGISTERED
Done ヾ(@⌒ー⌒@)ノ
Re: java.io.FileNotFoundException: ~/.sdkman/candidates/java/17.0.1-librca/lib/tzdb.dat (No such file or directory)
Posted: 28 Oct 2023, 17:23
by rednoah
If you're using Raspbian
(Debian-based) then you can just use the
apt repository. That'll install
filebot and all its dependencies including the latest JDK.

If you're set on using
sdkman then you need to ensure that the
$PATH isn't polluted with invalid
java binaries:
Console Output: Select all
$ realpath `which java`
/usr/lib/jvm/java-17-openjdk-arm64/bin/java

You have configured
$HOME/.sdkman/candidates/java/17.0.1-librca/bin/java which is not a standard
java install. Likely by accident when using
sdkman to install other things.
Re: java.io.FileNotFoundException: ~/.sdkman/candidates/java/17.0.1-librca/lib/tzdb.dat (No such file or directory)
Posted: 29 Oct 2023, 01:33
by arahknxs
This is now solved.
Thank you for pointing me in the right direction, I appreciate your speedy response and helpful info shared.
Frankly I hadn't heard of sdkman before so must have installed it while following some guide
These are the steps I took to solve it:
Followed the steps to uninstall sdkman
https://sdkman.io/install.
Then did an apt update, which pulled in openjdk-11-*
After that I was able to add my Filebot licence with no issues.