tomcat on ubuntu jnetpcap native library *.so unable to load

107 Views Asked by At

I want to deploy my application on to tomcat which has a pcap parsing ability. The module was running fine on eclipse / terminal. On tomcat i see the error as below.

pic

I have tried the following steps to resolve this issue:

  1. Add jnetpcap.jar and *.so (2 files for 1.4r1425 version) into $PATH
  2. Add jnetpcap.jar in tomcat lib folder
  3. In JAVA i tried using System.loadLibrary("path/to/so/files");

None of them worked. Also how does tomcat load native libraries is something i have no knowledge about. Kindly suggest a solution to make this work on tomcat.

0

There are 0 best solutions below