Page 1 of 1

Error with every command

Posted: 24 Mar 2026, 13:50
by johndoeger
Hi there,

no matter what command I use with Filebot, I always get the same warning message.

WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by com.sun.jna.Native in an unnamed module (file:/usr/share/filebot/jar/jna.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

Screenshot

Re: Error with every command

Posted: 24 Mar 2026, 13:55
by rednoah
:?: What does filebot -script fn:sysinfo say? The warning message is normal and means nothing in terms of FileBot working or not working. It merely means that you're using a very new JDK 24 / 25 to run FileBot. It'll work but it might print a warning. FileBot itself is currently optimised for JDK 21 which is the JDK we ship with on Windows and macOS, and no-dependency Linux packages.


:?: Does the screenshot that doesn't show anything mean anything? I only see pink / purple / blue diagonal lines.

Re: Error with every command

Posted: 24 Mar 2026, 17:38
by johndoeger
Ahh, ok. Then its a version warning.

The screenshot should show the filebot -script fn:sysinfo output. but in this case its fine. thx

Re: Error with every command

Posted: 24 Mar 2026, 17:58
by rednoah
You can probably make the warning go away by setting the JAVA_OPTS environment variable before the filebot call:

Shell: Select all

export JAVA_OPTS="--enable-native-access=ALL-UNNAMED"
filebot -script fn:sysinfo