You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings, I was unsure of where I would ask for help in this matter, so sorry if I mistaken writing an issue.
I'm using ICMP4j to develop an academic project, where I need to perform traceroutes between machines to collect latency data. I'm executing in my IntelliJ IDEA the draft that it's presented in https://www_icmp4j_com.lastssl.com/d/index.html and I'm having the following error stack trace:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jna/Pointer
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:377)
at org.icmp4j.Icmp4jUtil.initialize(Icmp4jUtil.java:97)
at org.icmp4j.IcmpPingUtil.executePingRequest(IcmpPingUtil.java:97)
at Sample.main(Sample.java:34)
Caused by: java.lang.ClassNotFoundException: com.sun.jna.Pointer
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 5 more
I correctly imported the icmp4j library, IntelliJ doesn't complain and the code seems to compile fine. My project is a Maven project, the pom.xml contains this:
I hope you can help me out with this, I look forward to use this library and to reference it in the article I'm building, if it proves to be a useful tool!
The text was updated successfully, but these errors were encountered:
Olá,
you are running on a nix platform (linux or OSX) right ?
I think the icmp4j.jar you use don't have the additional JNA or JNI libraries needed.
try using the fat jar icmp4j-all.jarhere
btw, this repos has not been updated for a while, Sal is maintaining this one
Greetings, I was unsure of where I would ask for help in this matter, so sorry if I mistaken writing an issue.
I'm using ICMP4j to develop an academic project, where I need to perform traceroutes between machines to collect latency data. I'm executing in my IntelliJ IDEA the draft that it's presented in https://www_icmp4j_com.lastssl.com/d/index.html and I'm having the following error stack trace:
I correctly imported the icmp4j library, IntelliJ doesn't complain and the code seems to compile fine. My project is a Maven project, the pom.xml contains this:
I hope you can help me out with this, I look forward to use this library and to reference it in the article I'm building, if it proves to be a useful tool!
The text was updated successfully, but these errors were encountered: