Java 13 - WARNING: An illegal reflective access operation has occurred

Support for Ubuntu and other Desktop Linux distributions
Post Reply
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Java 13 - WARNING: An illegal reflective access operation has occurred

Post by plittlefield »

Just installed Java 13 using these commands in Ubuntu 16.04 LTS...

Code: Select all

sudo add-apt-repository ppa:linuxuprising/java
sudo apt-get update
sudo apt-get install oracle-java13-installer
java --version
...then using the Groovy script to process a Transmission torrent, I received this warning message...

Code: Select all

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/usr/share/filebot/jar/groovy.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$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
...but it DID complete the Transmission torrent process and successfully renamed and copied the file.

Thanks.

Regards,

Paully

$ filebot -script fn:sysinfo
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/usr/share/filebot/jar/groovy.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$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
FileBot 4.9.0 (r6899)
JNA Native: 4.0.1
MediaInfo: 19.09
p7zip: p7zip Version 9.20 (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
unrar: UNRAR 5.30 beta 2 freeware
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-01-06 (r614)
Groovy: 2.5.8
JRE: Java(TM) SE Runtime Environment 13.0.2
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 4.2 GB Max Memory / 20 MB Used Memory
OS: Linux (amd64)
HW: Linux nas 4.15.0-15-generic #16~16.04.1-Ubuntu SMP Thu Apr 5 12:19:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
STORAGE: ext4 [/] @ 105 GB | fuse.sshfs [/home/paully/Downloads/seedbox2] @ 987 GB
DATA: /home/paully/.filebot
Package: DEB
License: FileBot License XXXXXXXX (Valid-Until: 2020-07-31)
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Java 13 - WARNING: An illegal reflective access operation has occurred

Post by rednoah »

Well, typically, if you're on Ubuntu 16.04 then Java 8 is default, and for this case we do have the various *-jdk8 compatibility packages.


:idea: The warnings above are normal if you're running the Java 8 build with Java 13. It's a Java thing. It means nothing. If you use the Java 11+ build, then those warnings will be suppressed.
:idea: Please read the FAQ and How to Request Help.
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: Java 13 - WARNING: An illegal reflective access operation has occurred

Post by plittlefield »

OK, thanks...

"It's a Java thing. It means nothing."

..love it.

:-)

Paully
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: Java 13 - WARNING: An illegal reflective access operation has occurred

Post by plittlefield »

Is there a way to suppress just the WARNING messages?
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Java 13 - WARNING: An illegal reflective access operation has occurred

Post by rednoah »

Yes. If you use the latest beta then these warnings will be suppressed.

If you upgrade to the latest beta, I'd also appreciate feedback if you find issues.
:idea: Please read the FAQ and How to Request Help.
Post Reply