I\'ve done a java library that uses a C library with JNI. The C library is compiled in linux into a .so file. This library needs cap_net_
.so
cap_net_