Home > Mobile >  cannot access class org.springframework.cglib.core.ReflectUtils with java 17 ! How to open a package
cannot access class org.springframework.cglib.core.ReflectUtils with java 17 ! How to open a package

Time:09-09

I want to integrate spring(spring boot 2.7.3) with JavaFx application implement on java17 and I got the following issue ;

class com.XXX$$EnhancerBySpringCGLIB$$637d19c4 (in module com.xxx) cannot access class 
org.springframework.cglib.core.ReflectUtils (in unnamed module @0x2d950574) because module
com.xxx does not read unnamed module @0x2d950574

Any Help ?

CodePudding user response:

Try to add a vm argument --add-modules=ALL-SYSTEM

If it's working fine, you can then specify only modules raising the issue.

CodePudding user response:

Try adding the JVM argument --add-reads=com.xxx=ALL-UNNAMED

  • Related