java.io.FileNotFoundException: ~/.sdkman/candidates/java/17.0.1-librca/lib/tzdb.dat (No such file or directory)

Support for Ubuntu and other Desktop Linux distributions
Post Reply
arahknxs
Posts: 7
Joined: 13 Jan 2020, 05:51

java.io.FileNotFoundException: ~/.sdkman/candidates/java/17.0.1-librca/lib/tzdb.dat (No such file or directory)

Post 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:

Code: Select all

filebot --license
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?
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Can't activate - java error

Post 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?

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




EDIT:

:idea: 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.
:idea: Please read the FAQ and How to Request Help.
arahknxs
Posts: 7
Joined: 13 Jan 2020, 05:51

Re: java.io.FileNotFoundException: ~/.sdkman/candidates/java/17.0.1-librca/lib/tzdb.dat (No such file or directory)

Post 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 ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: java.io.FileNotFoundException: ~/.sdkman/candidates/java/17.0.1-librca/lib/tzdb.dat (No such file or directory)

Post 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.
:idea: Please read the FAQ and How to Request Help.
arahknxs
Posts: 7
Joined: 13 Jan 2020, 05:51

Re: java.io.FileNotFoundException: ~/.sdkman/candidates/java/17.0.1-librca/lib/tzdb.dat (No such file or directory)

Post 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 :roll:

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.
Post Reply