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

支持JDK17吗,在JDK17中启动报错应该怎么配置 #217

Open
zhanxp opened this issue Aug 13, 2024 · 0 comments
Open

支持JDK17吗,在JDK17中启动报错应该怎么配置 #217

zhanxp opened this issue Aug 13, 2024 · 0 comments

Comments

@zhanxp
Copy link

zhanxp commented Aug 13, 2024

JDK17中已经引入了依赖,但是启动报错找不到类;也已经增加了 --add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED 参数。

Caused by: java.lang.NoClassDefFoundError: com/qcloud/cos/COS
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3402)
at java.base/java.lang.Class.getDeclaredMethods(Class.java:2504)
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:465)
... 21 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.qcloud.cos.COS
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 25 common frames omitted

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

1 participant