ST MotorControl Workbench WARNING: An illegal reflective access operation has occurred
- October 15, 2025
- 1 reply
- 266 views

Hello,
my computer is running Windows 11.
The versions of the software I'm using are CubeMX V6.0.1, MotorWorkBench V5.4.8, and Java jre1.8.0_461. However, I keep getting such error prompts when generating code. Could you please tell me how to solve this problem?
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:D:/STMicroelectronics/STM32Cube/STM32CubeMX/plugins/analytics.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
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
[Fatal Error] :1:1: Premature end of file.
[Fatal Error] :1:1: Premature end of file.
[Fatal Error] :1:1: Premature end of file.
[Fatal Error] :1:1: Premature end of file.
[Fatal Error] :1:1: Premature end of file.
[Fatal Error] :1:1: Premature end of file.

