kaitoy / pcap4j

A Java library for capturing, crafting, and sending packets.

Home Page:https://www.pcap4j.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install native libs (Npcap/libpcap) programmatically automatically

Osiris-Team opened this issue · comments

I would like to install those libs automatically so the end-user doesn't have to.
I would also create a PR if it gets accepted.
Any ideas, help are very welcome, since at the moment I have no clue how to achieve this.

Given that this project uses JNA to load native libraries, JNA itself supports auto extraction and loading of native libs if you bundle them in your applications jar file in a certain structure supported by JNA.

More info can be found here:

https://github.com/java-native-access/jna/blob/master/www/GettingStarted.md