Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #18

Open
UserFengFeng opened this issue Jul 13, 2022 · 2 comments

Comments

@UserFengFeng
Copy link

image

@UserFengFeng
Copy link
Author

集成了还是不行 jdk 11.0.13

@UserFengFeng UserFengFeng changed the title 集成了以后还是不行有人遇到么 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 Jul 13, 2022
@cuihj
Copy link

cuihj commented Nov 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants