Unable to make public jdk.internal.loader.Resource jdk.internal.loader.URLCl assPath.getResource(java.lang.String) accessible: module java.base does not "exports jdk.internal.loader" to unnamed module @50d0686
UserFengFeng opened this issue · 2 comments
UserFengFeng commented
UserFengFeng commented
集成了还是不行 jdk 11.0.13
cuihj commented
jdk 遇到 Exception in thread "main" java.lang.reflect.InaccessibleObjectException: Unable to make field private final jdk.internal.loader.URLClassPath java.net.URLClassLoader.ucp accessible: module java.base does not "opens java.net" to unnamed module @d041cf
添加启动参数 --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/jdk.internal.loader=ALL-UNNAMED