Is it possible to load the Teamspeak.so library by System.loadLibrary
in java and access the methods declared in the .h files?
(sources are the files from the ts3_sdk_3.0.3.2 - .h files from /include/teamspeak/serverlib.h; .so files from /bin/libts3server_linux_amd64.so)
Im able to load the library:
System.loadLibrary("ts3server_linux_amd64");
- works without error.
When i try to use a method i get a
java.lang.UnsatisfiedLinkError
Testcode:
public class main {
static {
System.loadLibrary("ts3server_linux_amd64");
}
public static void main(String[] args) {
new main().onClientStartTalkingEvent();
}
private native void onClientStartTalkingEvent();
}
(.so file is stored in a lib folder and added to the classpath. OS is ubuntu).
Thanks and best regards