kwhat / jnativehook

Global keyboard and mouse listeners for Java.
Other
1.75k stars 347 forks source link

Unable to extract the native library /com/github/kwhat/jnativehook/lib/windows/x86_64/JNativeHook.dll! #454

Closed andrew121410 closed 11 months ago

andrew121410 commented 11 months ago

So I was using a old version of jnativehook version 2.1.0 it works perfectly still, but I've been using it for years, so It's finally time to upgrade to a newer version of jnativehook so I tried to use version 2.2.2 on maven central I just had to change a few import statement lines and compiled but when I try to run my program it throws now

Dec 08, 2023 4:00:33 PM com.github.kwhat.jnativehook.GlobalScreen <clinit>
SEVERE: Unable to extract the native library /com/github/kwhat/jnativehook/lib/windows/x86_64/JNativeHook.dll!

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to extract the native library /com/github/kwhat/jnativehook/lib/windows/x86_64/JNativeHook.dll!

        at com.github.kwhat.jnativehook.GlobalScreen.<clinit>(GlobalScreen.java:91)
        at etc...
andrew121410 commented 11 months ago

Never mind I fixed it

FelipeAumannRS commented 10 months ago

Never mind I fixed it

how though?