How to resolve "java.lang.IllegalAccessError"
Briefly

Understand how the Java Platform Module System works. Ensure module descriptors are correctly specifying exports and opens directives to allow access to required packages.
Utilizing --add-exports and --add-opens flags provides a solution for granting access to public types and non-public elements from specified packages in Java 17 upgrade.
Read at Medium
[
add
]
[
|
|
]