GRASSMARLIN icon indicating copy to clipboard operation
GRASSMARLIN copied to clipboard

Unable to initialize JNetPCap

Open xmjie opened this issue 8 years ago • 12 comments

"Unable to initialize JNetPCap,packet capture functionality will be disabled",why?How I can solve this problem?

xmjie avatar Aug 30 '17 04:08 xmjie

What version are you trying to run? Are you installing from an installer or are you trying to build from source? What Operating System are you running on?

iadgovuser5 avatar Aug 30 '17 13:08 iadgovuser5

3.2 and 3.2.1 will produce this error message if GrassMarlin cannot find the native JNetPCap library in your working directory.

iadgovuser5 avatar Aug 30 '17 13:08 iadgovuser5

The version is 3.2,and I don't find an installer. I tried to run by running build-ant.xml, then running GrassMarlin.jar. The operating system is windows.And lib has jnetpcap.jar.

xmjie avatar Aug 31 '17 01:08 xmjie

I would recommend downloading and running the v3.2.1 installer for your platform. The installers can be found under Releases on the main page or at https://github.com/iadgov/GRASSMARLIN/releases/tag/v3.2.1.

iadgovuser5 avatar Aug 31 '17 10:08 iadgovuser5

Using the release windows installer(GrassMarlin-64.msi), I still encountered this problem . My OS is Windows10 x64. I wonder if this has anything to do with the jdk version? My JDK version is JDK11.

JsHuang avatar Apr 12 '19 04:04 JsHuang

Log shows "Unable to initialize JNetPCap, packet capture functionality will be disabled", but the native JNetPCap library is just in the directory "GM3\lib\jnetpcap.jar". It seems that something wrong happens when the code : "System.loadLibrary("jnetpcap")" (Line 84 in "GM3\src\util\Launcher.java") is executed. Have you solved this problem yet? Can you tell me what I should do to solve this problem? Thank you very much. GrassMarlin_log Launcher

Canada-Lynx avatar May 29 '19 07:05 Canada-Lynx

Hi, Can you describe your work environment and indicate what version do you have installed?

Thanks

iadgovuser22 avatar May 29 '19 12:05 iadgovuser22

Thank you so much for your reply! I think the source files may be v3.2 or a higher version since they were downloaded in August 2017. They were compiled with java version "1.8.0_212" and run in win10_x64.

Canada-Lynx avatar May 29 '19 12:05 Canada-Lynx

Hi,

I'm assuming you are running GM from source. If this is the case, have you tried using the msi package to install the pre-compiled code? I'll have to look deeper into it.

Thanks

iadgovuser22 avatar May 31 '19 13:05 iadgovuser22

Yes. I have tried using the msi package GrassMarlin-64.msi to install the pre-compiled code but the same log appears like the picture. It seems that something is wrong with the configuration or environment but I don't know how to fix it. Thanks anyway.

msi64

Canada-Lynx avatar Jun 01 '19 02:06 Canada-Lynx

I am also getting this error. I just installed the GrassMarlin-Full-x64. And after running the installer and opening up GM, the error appears. I confirmed that I do have WinPCap installed as well

ruby-wizard avatar Aug 26 '20 19:08 ruby-wizard

[SOLVED] I had 2 Java installs, a newer 210 and the 92 (which is from the GrassMarlin install) GrassMarlin default pointed to the wrong Java install. Removing both and only installing the 92 worked for me!

ruby-wizard avatar Aug 27 '20 20:08 ruby-wizard