I have created app that uses jnetpcap. It should be multiplatform and runs on 32 and 64 platforms. I have never worked with maven befor, so how to add all versions of jnetpcap to project?
I found a solution that uses nar https://github.com/sugree/jnetpcap, but I don't understand how to use it properly.
Should I copy the structure of the project and compile jnetpcap in there? If this is nar, not dependency, how to add it to project, so I can use jnetpcap in java classes?
PS Also I have tried to add jnetpcap as dependency using conf from here: https://www.versioneye.com/clojure/jnetpcap:jnetpcap/1.4.r1425-1d
I have added this lines to my pom.xml:
<repositories>
<repository>
<id>clojars</id>
<url>http://clojars.org/repo/</url>
</repository>
<dependency>
<groupId>jnetpcap</groupId>
<artifactId>jnetpcap</artifactId>
<version>1.4.r1425-1d</version>
It compiles with no errors, but when I try to execute project with command: exec:java -Dexec.mainClass="org.sample.Main" it crushes with error: "no jnetpcap in java.library.path".