I have a Program which is reading Pcap file in JAVA. I have included jnetpcap jar into it. Along with jar file, I have also put .dll file in System32 folder of windows. I am able to run this program on windows machine.
Now I tried to run same program on Linux Machine But is giving me this error:
Exception in thread "Main Thread" java.lang.UnsatisfiedLinkError: com/slytechs/library/NativeLibrary.dlopen(Ljava/lang/String;)J at com.slytechs.library.NativeLibrary.(Unknown Source) at com.slytechs.library.JNILibrary.(Unknown Source) at com.slytechs.library.JNILibrary.loadLibrary(Unknown Source) at com.slytechs.library.JNILibrary.register(Unknown Source) at com.slytechs.library.JNILibrary.register(Unknown Source) at com.slytechs.library.JNILibrary.register(Unknown Source) at org.jnetpcap.nio.JMemory.(Unknown Source) at com.ma.pcapreader.LatencyCalculator.(LatencyCalculator.java:36) Could not find the main class: com.ma.pcapreader.LatencyCalculator. Program will exit.
I have also included .so file into /usr/lib and /usr/share/lib folder. Still I am getting same error. Please help me to come out of this problem.