So I downloaded JNativeHook 1.1.4 from
And then I added it to my build path and compiled the program. I tested the program on my Linux VPS and get this error.
[root@nl ~]# java -jar file.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/tmp/libJNativeHook_468389387164048348.so: libXt.so.6: cannot open shared object file: No such file or directory
The program was compiled using Java 1.6 and my VPS is running.
[root@nl ~]# java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
How can I get my program to work on Linux?. The program is working fine on Windows.
When i run yum whatprovides '*/libXp.so.6 I get this.
libXp-1.0.0-15.1.el6.x86_64 : X.Org X11 libXp runtime library
Repo : base
Matched from:
Filename : /usr/lib64/libXp.so.6