LeVanPhuUIT / jnativehook

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

JNativeHook fails to load. #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use a application with JNativeHook as a working library
2. Eventually the library fails to load

What is the expected output? What do you see instead?
Any application doesn't load the library including the example as part of the 
jar.

What version of the product are you using? On what operating system?
1.1.2/Windows 7 64-bit

Original issue reported on code.google.com by haywood....@gmail.com on 21 Nov 2012 at 9:07

GoogleCodeExporter commented 8 years ago
Please provide more information.  What error are you experiencing?

Original comment by a...@1stleg.com on 21 Nov 2012 at 4:50

GoogleCodeExporter commented 8 years ago
Unfortunately I don't receive any error from java. The application will start 
successfully and doesn't crash, but none of the Listeners seem to return 
anything. When this error occurs it seems to affect any application that uses 
this library universally.

Original comment by haywood....@gmail.com on 21 Nov 2012 at 5:23

GoogleCodeExporter commented 8 years ago
please start the jar from the command line using `java -jar JNativeHook.jar` 
and let me know if anything shows up.

Original comment by a...@1stleg.com on 22 Nov 2012 at 5:08

GoogleCodeExporter commented 8 years ago
PLEASE FIX IT ... SAME TO ME

Original comment by ankh1...@gmail.com on 23 Nov 2012 at 1:19

GoogleCodeExporter commented 8 years ago
I need more information about how you are using the library.  I am unable to 
reproduce this problem by running the example.  You may need to make sure your 
java library path is set correctly.

Original comment by a...@1stleg.com on 23 Nov 2012 at 6:23

GoogleCodeExporter commented 8 years ago
i started the jar from the command line using `java -jar JNativeHook.jar`. The 
application started successfully but nothing is captured! 

Original comment by goekhan....@gmail.com on 23 Nov 2012 at 6:26

GoogleCodeExporter commented 8 years ago
I used the library in a netbeans module as a dependency

Original comment by goekhan....@gmail.com on 23 Nov 2012 at 6:26

GoogleCodeExporter commented 8 years ago
i had to restart my machine (Windows 7 x64) and after the restart i started the 
jar from the command line using `java -jar JNativeHook.jar`. The application 
started successfully and showed me mouse positions successfully.

Original comment by goekhan....@gmail.com on 23 Nov 2012 at 6:38

GoogleCodeExporter commented 8 years ago
But i get the following error if i start my netbeans platform.

java.lang.NoClassDefFoundError: Failed to locate the 
org.jnativehook.mouse.NativeMouseWheelEvent class

Original comment by goekhan....@gmail.com on 23 Nov 2012 at 6:40

GoogleCodeExporter commented 8 years ago
Another problem is that the created libraries in temp folder are not deleted on 
exit!

Original comment by goekhan....@gmail.com on 23 Nov 2012 at 6:42

GoogleCodeExporter commented 8 years ago

Original comment by a...@1stleg.com on 26 Nov 2012 at 5:06

GoogleCodeExporter commented 8 years ago
>>But i get the following error if i start my netbeans platform.
>>java.lang.NoClassDefFoundError: Failed to locate the 
org.jnativehook.mouse.NativeMouseWheelEvent class

You have either forgot to include JNativeHook.jar in your classpath or the 
class loader you are using is broken.

>> Another problem is that the created libraries in temp folder are not deleted 
on exit!

This is invalid.  Temp files are cleaned up if the JVM terminates in a normal 
way. 

Original comment by a...@1stleg.com on 26 Nov 2012 at 6:59

GoogleCodeExporter commented 8 years ago
Based on the information provided this looks like it maybe similar to bug #28.  
Please test the attached jar and let me know if it resolves the problem.

Original comment by a...@1stleg.com on 5 Dec 2012 at 7:13

Attachments:

GoogleCodeExporter commented 8 years ago
That did seem to fix it for me.  Thanks.

Original comment by CamHar...@gmail.com on 18 Dec 2012 at 11:19

GoogleCodeExporter commented 8 years ago

Original comment by a...@1stleg.com on 18 Dec 2012 at 7:37

GoogleCodeExporter commented 8 years ago
I've downloaded the lib (145KB) but still when I load the application, it will 
stop after 1 second.

Original comment by f360.jov...@gmail.com on 23 Jan 2014 at 6:17

GoogleCodeExporter commented 8 years ago
Can you copy/paste the console output from the demo in 1.2.0-beta1.

Original comment by a...@1stleg.com on 23 Jan 2014 at 6:18