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

JNativeHook.jar does not work with jdk15.0.2 64-bit (workaround available) #22

Open
bomeers opened this issue Feb 10, 2021 · 2 comments

Comments

@bomeers
Copy link

bomeers commented Feb 10, 2021

I recently updated to jdk15.0.2 and realized that gmk stopped working for me. I did however find a workaround for this issue:

  1. Download jnativehook-2.1.0.zip
  2. Open jnativehook-2.1.0.zip and navigate to jnativehook\jar\jnativehook-2.1.0.jar
  3. Extract jnativehook-2.1.0.jar to <project-path>\node_modules\gkm\lib\lib\
  4. Delete file JNativeHook.jar in <project-path>\node_modules\gkm\lib\lib\
  5. Re-name jnativehook-2.1.0.jar to JNativeHook.jar

I have yet to test this method with earlier versions of java.

@bomeers bomeers changed the title JNativeHook.jar does not work with jdk15.0.2 64-bit JNativeHook.jar does not work with jdk15.0.2 64-bit (workaround available) Feb 10, 2021
@tomzx
Copy link
Owner

tomzx commented Feb 16, 2021

Did you have any specific error when you called java -jar JNativeHook.jar? #15 reported a core dump on Linux. What OS are you using? (given the path in your examples I assume Windows, but could you specify if it's W7/8/10, thanks!)

@bomeers
Copy link
Author

bomeers commented Feb 16, 2021

Did you have any specific error when you called java -jar JNativeHook.jar? #15 reported a core dump on Linux. What OS are you using? (given the path in your examples I assume Windows, but could you specify if it's W7/8/10, thanks!)

I am using windows 10. JNativeHook.jar that comes with the gkm package wouldn't open for me when I tried to open it. The updated version does.

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

2 participants