windows安装JNetPca

Installation of JNetPcap is dependent on the installation of WinPcap Library (The libpcap library for Windows).

WinPcap Installation Link

Now Once the WinPcap Setup is installed, you can now download the binaries required for the download of JNetPcap.

(Note: Is it advised that 32 bit Eclipse Users also download the 32 bit version of Download Package(x86 version)).

– JNetPcap Download Package

– JNetPcap Source File

– JNetPcap JavaDoc

Once all three files are downloaded. UNPACK them into a preffered location so that they can be easily linked with the Eclipse IDE

  • Copy the jnetpcap.dll to both windows/system and windows/system32 (to be on the safe side)
  • Now open Eclipse as Administrator.
  • Go to Window->Prefrences
  • Java->Build Path-> User Libraries
  • Select “New”
  • Name the Library “JNetPcap”
  • Then Add Jar file i.e “jnetpcap.jar” from the download package folder.
  • Expand the Jar file “jnetpcap.jar
  • Click on Source attachment and Select “Edit”. After that select the folder in which the source files are present e.g “jnetpcap-src-1.3.0-1″.
  • Click on Java Doc location and Select “Edit”.After that select the folder in which the java docs are present e.g “jnetpcap-javadoc-1.3.0-1″.
  • Now select Native Library location and Select “Edit”. Select the folder where the initial Download Package is present.(In which the “include” folder is present).
  • Select OK.

configure JnetPcap in java project

  • right click your project name (for example "capture")
  • select "build path"->"configure build path..."
  • select Libraries,select "jnetpcap.jar"
  • click ok

Then, you will see "jnetpcap.jar" in Referenced Libraries. Now jnetpcap is include in your project

You have successfully installed JNetPcap. Now all you have to do is include the User library in your project.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值