Illegal reflective access when runing Sikuli on Linux

Asked by TestMechanic on 2019-04-02

Here is my setup:
----------------
-- Clean VM with Lubuntu 18.04.02 LTS

-- Installed openjdk-11-jdk but strangely it shows 10.0.2
java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

-- Installed libopencv3.2-java as recommended

Starting sikuli IDE results in some bad warnings:

java -jar sikulix.jar

(java:14385): dbind-WARNING **: 12:28:45.440: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.sikuli.ide.CloseableModernTabbedPaneUI (file:/home/test/SikuliX1.4/sikulix.jar) to constructor javax.swing.plaf.basic.BasicTabbedPaneUI$Actions(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.sikuli.ide.CloseableModernTabbedPaneUI
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

similar is for attempt to start test from console

java -jar sikulix.jar -r ~/t1.sikuli

(java:14473): dbind-WARNING **: 12:29:47.715: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.python.core.PySystemState (file:/home/test/.Sikulix/Extensions/jython-standalone-2.7.1.jar) to method java.io.Console.encoding()
WARNING: Please consider reporting this to the maintainers of org.python.core.PySystemState
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
---------------

Note that both IDE and console script are working ... but warnings looks bad :-)

Is there something that I can do to resolve those warnings?

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
TestMechanic
Solved:
2019-04-02
Last query:
2019-04-02
Last reply:
2019-04-02
RaiMan (raimund-hocke) said : #1

--- but strangely it shows 10.0.2
not acceptable of course. You should revise your installation/setup. Thre is some mix-up, which surely is not helpful;-)

--- Is there something that I can do to resolve those warnings?
No, this is a strange idea of the Java developers introduce with version 9, to warn about usages, that are illegal and might lead to errors in the future. Nobody knows when.
These warnings have simply to be accepted, since there is no easy option to hide them.

TestMechanic (ndinev) said : #2

Thanks
This solves my problem

BTW: openjdk installation was the first think I isntalled after clear VM was created from original ISO
I decided to install openjdk-8 and to go with it :-)