Importing libraries from build.xml file in Eclipse

Posted by user3873909 on Stack Overflow See other posts from Stack Overflow or by user3873909
Published on 2014-08-21T10:10:53Z Indexed on 2014/08/21 10:20 UTC
Read the original article Hit count: 213

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse