jnetpcap

jnetpcap - java.lang.UnsatisfiedLinkError: com.slytechs.library.NativeLibrary.dlopen(Ljava/lang/String;)J

我是研究僧i 提交于 2019-12-30 09:55:34
问题 I am using IntelliJ to run a sample java-jnetpcap application. I have 64 bit JDK in the class path and included the following dependency <dependency> <groupId>jnetpcap</groupId> <artifactId>jnetpcap</artifactId> <version>1.4.r1425-1f</version> </dependency> I am running the below sample.java class public class PcapReaderDemo { private static final String filePath= "/src/main/resources/TAPcapture.pcap"; public static void main(String [] arguments){ final StringBuilder errbuf = new

How to execute maven main class with required user libraries?

感情迁移 提交于 2019-12-02 09:42:19
问题 I created one maven project in which only one class is available. I want to use jnetpcap API in this class. For this purpose, I followed jnet eclipse setup tutorial with Setup 1 approach (user library) and created one user library and added it to my project. JnetTest.java - This class is same as jnetpcap clasic example My system is Ubuntu 16.10. I'm using openjdk version "1.8.0_131". Library creation steps - I downloaded 1.3 version jar package, source package and javadoc package of jnetpcap

How to execute maven main class with required user libraries?

我的未来我决定 提交于 2019-12-02 03:53:40
I created one maven project in which only one class is available. I want to use jnetpcap API in this class. For this purpose, I followed jnet eclipse setup tutorial with Setup 1 approach (user library) and created one user library and added it to my project. JnetTest.java - This class is same as jnetpcap clasic example My system is Ubuntu 16.10. I'm using openjdk version "1.8.0_131". Library creation steps - I downloaded 1.3 version jar package, source package and javadoc package of jnetpcap and added libjnetpcap.so, jnetpcap.jar, jnetpcap-src-1.3.zip, jnetpcap-javadoc-1.3.zip to lib folder