Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Unable to initialize JNetPCap #11

Open
xmjie opened this issue Aug 30, 2017 · 12 comments
Open

Unable to initialize JNetPCap #11

xmjie opened this issue Aug 30, 2017 · 12 comments
Assignees
Labels

Comments

@xmjie
Copy link

xmjie commented Aug 30, 2017

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

@iadgovuser5
Copy link
Contributor

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
Copy link
Contributor

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

@xmjie
Copy link
Author

xmjie commented Aug 31, 2017

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.

@iadgovuser5
Copy link
Contributor

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.

@JsHuang
Copy link

JsHuang commented Apr 12, 2019

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.

@Canada-Lynx
Copy link

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

@iadgovuser22
Copy link

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

Thanks

@Canada-Lynx
Copy link

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.

@iadgovuser22
Copy link

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

@Canada-Lynx
Copy link

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

@ruby-wizard
Copy link

ruby-wizard commented Aug 26, 2020

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
Copy link

ruby-wizard commented Aug 27, 2020

[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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants