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

使用Jre21启动项目 提示java.lang.NoClassDefFoundError: sun/misc/Unsafe #3289

Open
T13MAX opened this issue Jan 16, 2025 · 0 comments
Open
Labels
question Further information is requested

Comments

@T13MAX
Copy link

T13MAX commented Jan 16, 2025

Exception in thread "main" java.lang.ExceptionInInitializerError
at com.alibaba.fastjson.JSON.(JSON.java:81)
at com.t13max.template.util.JsonUtils.readJsonFile(JsonUtils.java:79)
at com.t13max.client.lwjgl3.Lwjgl3Launcher.createApplication(Lwjgl3Launcher.java:38)
at com.t13max.client.lwjgl3.Lwjgl3Launcher.main(Lwjgl3Launcher.java:30)
Caused by: com.alibaba.fastjson2.JSONException: init unsafe error
at com.alibaba.fastjson2.util.JDKUtils.(JDKUtils.java:81)
... 4 more
Caused by: java.lang.NoClassDefFoundError: sun/misc/Unsafe
at com.alibaba.fastjson2.util.JDKUtils.(JDKUtils.java:75)
... 4 more
Caused by: java.lang.ClassNotFoundException: sun.misc.Unsafe
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:526)
... 5 more
使用Jre21启动项目 提示java.lang.NoClassDefFoundError: sun/misc/Unsafe

@T13MAX T13MAX added the question Further information is requested label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant