First, it loads well, detects OW, but when I press a button, shoot( I COULD BE WRONG tho)
I get this:
`Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'interception':
%1 is not a valid Win32 application.
%1 is not a valid Win32 application.
The specified module could not be found.
Native library (win32-x86-64/interception.dll) not found in resource path (Overwatcheat 2.1.0.jar)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:301)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:461)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:403)
at com.overwatcheat.nativelib.DirectNativeLib.(DirectNativeLib.kt:27)
at com.overwatcheat.nativelib.interception.Interception.(Interception.kt:25)
at com.overwatcheat.nativelib.interception.Interception.(Interception.kt:25)
at com.overwatcheat.nativelib.interception.Mouse.(Mouse.kt:33)
at com.overwatcheat.aimbot.AimBotKt.move(AimBot.kt:80)
at com.overwatcheat.aimbot.AimBotKt.aim(AimBot.kt:70)
at com.overwatcheat.aimbot.AimBotKt.aimBot(AimBot.kt:52)
at com.overwatcheat.Overwatcheat.main(Overwatcheat.kt:84)
Suppressed: java.lang.UnsatisfiedLinkError: %1 is not a valid Win32 application.
at com.sun.jna.Native.open(Native Method)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:191)
... 10 more
Suppressed: java.lang.UnsatisfiedLinkError: %1 is not a valid Win32 application.
at com.sun.jna.Native.open(Native Method)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:204)
... 10 more
Suppressed: java.lang.UnsatisfiedLinkError: The specified module could not be found.
at com.sun.jna.Native.open(Native Method)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:264)
... 10 more
Suppressed: java.io.IOException: Native library (win32-x86-64/interception.dll) not found in resource path (Overwatcheat 2.1.0.jar)
at com.sun.jna.Native.extractFromResourcePath(Native.java:1096)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:275)
... 10 more
`
Like the error says, it's looking for win32-x86-64/libtesseract302.dll in java.class.path. Part of your classpath apparently includes myproject/target/classes.
The prefix represents the platform and architecture of the shared library to be loaded, which allows shared libraries for different targets to be included in the same archive. If JNA cannot find the requested library name in the system load path, then it attempts to find it within your resource path (extracting it, if necessary). So if you put the DLL in a jar file, you'll need to give it the win32-x86-64 prefix in order for it to load.
The "resource path" is nominally your class path; basically anywhere reachable by ClassLoader.getResource().
First, it loads well, detects OW, but when I press a button, shoot( I COULD BE WRONG tho) I get this:
`Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'interception': %1 is not a valid Win32 application.
%1 is not a valid Win32 application.
The specified module could not be found.
Native library (win32-x86-64/interception.dll) not found in resource path (Overwatcheat 2.1.0.jar) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:301) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:461) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:403) at com.overwatcheat.nativelib.DirectNativeLib.(DirectNativeLib.kt:27)
at com.overwatcheat.nativelib.interception.Interception.(Interception.kt:25)
at com.overwatcheat.nativelib.interception.Interception.(Interception.kt:25)
at com.overwatcheat.nativelib.interception.Mouse.(Mouse.kt:33)
at com.overwatcheat.aimbot.AimBotKt.move(AimBot.kt:80)
at com.overwatcheat.aimbot.AimBotKt.aim(AimBot.kt:70)
at com.overwatcheat.aimbot.AimBotKt.aimBot(AimBot.kt:52)
at com.overwatcheat.Overwatcheat.main(Overwatcheat.kt:84)
Suppressed: java.lang.UnsatisfiedLinkError: %1 is not a valid Win32 application.
at com.sun.jna.Native.open(Native Method) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:191) ... 10 more Suppressed: java.lang.UnsatisfiedLinkError: %1 is not a valid Win32 application.
at com.sun.jna.Native.open(Native Method) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:204) ... 10 more Suppressed: java.lang.UnsatisfiedLinkError: The specified module could not be found.
at com.sun.jna.Native.open(Native Method) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:264) ... 10 more Suppressed: java.io.IOException: Native library (win32-x86-64/interception.dll) not found in resource path (Overwatcheat 2.1.0.jar) at com.sun.jna.Native.extractFromResourcePath(Native.java:1096) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:275) ... 10 more `
I found smth similar on stackoverflow, cant fix myself cause bad at Kotlin https://stackoverflow.com/questions/19768453/unsatisfiedlinkerror-unable-to-load-library-native-library-not-found-in-reso
This comment in particular:
Like the error says, it's looking for win32-x86-64/libtesseract302.dll in java.class.path. Part of your classpath apparently includes myproject/target/classes.
The prefix represents the platform and architecture of the shared library to be loaded, which allows shared libraries for different targets to be included in the same archive. If JNA cannot find the requested library name in the system load path, then it attempts to find it within your resource path (extracting it, if necessary). So if you put the DLL in a jar file, you'll need to give it the win32-x86-64 prefix in order for it to load.
The "resource path" is nominally your class path; basically anywhere reachable by ClassLoader.getResource().