devshift / jnativehook

Automatically exported from code.google.com/p/jnativehook
0 stars 0 forks source link

JNativeHook doesn't work within SBT (or jar-files created with SBT) #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Take the src-files, put directories src/java and src/native into scr/main/* 
(just to satisfy SBT)
2. Compile and run the project (i.e. NativeHookDemo)

What is the expected output? What do you see instead?
I expect the same behavior as when running the example jar-file. Instead, the 
frame loads as usual, but no key or mouse events are recognized. Furthermore, 
on the start this exception is thrown:
java.lang.NoClassDefFoundError: Failed to locate the 
org.jnativehook.mouse.NativeMouseWheelEvent class

What version of the product are you using? On what operating system?
JNativeHook Version 1.1.2, SBT Version 0.12.1, Windows 7

Please provide any additional information below.
I also created jar-files with sbt-onejar and sbt-assembly which didn't work 
either.
(The respective libraries are found and loaded without errors.)

Original issue reported on code.google.com by SteffenH...@gmail.com on 19 Dec 2012 at 2:44

GoogleCodeExporter commented 9 years ago
If you are compiling from source, try using the 1.1 branch from SVN which 
contains a fix for a similar problem outlined in bug #27 and bug #28.  If you 
only require a working jar, there is a pre-compiled version attached to both 
those bugs.  This bug will be fixed in 1.1.3 but I haven't had time to 
implement the fix I have for bug #30.

Original comment by a...@1stleg.com on 19 Dec 2012 at 6:19

GoogleCodeExporter commented 9 years ago
Thanks a lot! The version provided in bug #28 solved the problem!

Original comment by SteffenH...@gmail.com on 20 Dec 2012 at 4:56

GoogleCodeExporter commented 9 years ago

Original comment by a...@1stleg.com on 22 Dec 2012 at 5:39