Error with every command

All your suggestions, requests and ideas for future development
Post Reply
johndoeger
Posts: 2
Joined: 24 Mar 2026, 13:37

Error with every command

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

Re: Error with every command

Post 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.
:idea: Please read the FAQ and How to Request Help.
johndoeger
Posts: 2
Joined: 24 Mar 2026, 13:37

Re: Error with every command

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

Re: Error with every command

Post 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
:idea: Please read the FAQ and How to Request Help.
Post Reply