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

Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/foreign/MemorySession #309

Open
waa344 opened this issue Oct 29, 2023 · 3 comments

Comments

@waa344
Copy link

waa344 commented Oct 29, 2023

Can anyone help me I'm not very good with PC's so this all makes no sense to me:

[main] INFO net.openhft.chronicle.core.Jvm - Chronicle core loaded from file:/C:/Users/willw/Downloads/Overwatcheat-5.1.0/Overwatcheat-5.1.0/build/Overwatcheat%205.1.0/Overwatcheat%205.1.0.jar
Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/foreign/MemorySession
at org.jire.overwatcheat.nativelib.User32Panama.(User32Panama.kt:26)
at org.jire.overwatcheat.aimbot.ToggleUIThread.(ToggleUIThread.kt:29)
at org.jire.overwatcheat.Main.main(Main.kt:73)
Caused by: java.lang.ClassNotFoundException: java.lang.foreign.MemorySession
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)
... 3 more
Press any key to continue . . .

@gasthell
Copy link

Try java19, I encountered the same problem, it can be solved with java19, someone gave this method before
https://www.oracle.com/java/technologies/javase/jdk19-archive-downloads.html

@EdLovecraft
Copy link

use jdk 19, only 19 works

@Chinaholmesfans
Copy link

Chinaholmesfans commented Nov 27, 2023

C:\Users\xxx>java -version
java version "19" 2022-09-20
Java(TM) SE Runtime Environment (build 19+36-2238)
Java HotSpot(TM) 64-Bit Server VM (build 19+36-2238, mixed mode, sharing)

I face the same problem and Im sure I m using jdk19

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

5 participants
@EdLovecraft @Chinaholmesfans @gasthell @waa344 and others