Skip to content

java.lang.IllegalAccessError #1

Description

@amigax

Im getting an error trying to run the example code, why is this?

Exception in thread "JNativeHook Dispatch Thread" java.lang.IllegalAccessError: tried to access method com.sun.jna.Pointer.<init>(J)V from class com.sun.jna.platform.win32.WinReg$HKEY at com.sun.jna.platform.win32.WinReg$HKEY.<init>(WinReg.java:43) at com.sun.jna.platform.win32.WinReg.<clinit>(WinReg.java:72) at com.droneah.listapps.ListApps.getInstalledApps(ListApps.java:41) at com.radiantsilver.gdtoolage.tynepunkhelper.ClipStalkUI.nativeKeyPressed(ClipStalkUI.java:67) at com.github.kwhat.jnativehook.GlobalScreen$EventDispatchTask.processKeyEvent(GlobalScreen.java:559) at com.github.kwhat.jnativehook.GlobalScreen$EventDispatchTask.run(GlobalScreen.java:524) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions