Importing libraries from build.xml file in Eclipse
- by user3873909
I am developing a java app and I need to use jnativehook library. I have downloaded the .zip from https://code.google.com/p/jnativehook/downloads/list . There is a bin folder,src folder,build.xml,build.num and 3 .txt files when I extracted this folder.
I have included this library in my project by File - project - Java project from existing Ant file
And I have tried an example https://code.google.com/p/jnativehook/wiki/examples
But I get the following error
Exception in thread "main" java.lang.ExceptionInInitializerError
at GlobalKeyListenerExample.main(GlobalKeyListenerExample.java:25)
Caused by: java.lang.RuntimeException: Unable to locate the native library.
at org.jnativehook.GlobalScreen.loadNativeLibrary(GlobalScreen.java:462)
at org.jnativehook.GlobalScreen.<init>(GlobalScreen.java:71)
at org.jnativehook.GlobalScreen.<clinit>(GlobalScreen.java:53)
... 1 more
What location should I give in native library path?