kaitoy / pcap4j

A Java library for capturing, crafting, and sending packets.
https://www.pcap4j.org/
Other
1.16k stars 308 forks source link

Install native libs (Npcap/libpcap) programmatically automatically #294

Open Osiris-Team opened 2 years ago

Osiris-Team commented 2 years ago

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.

dellgreen commented 1 year ago

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