Comments (10)
Try ln -s /usr/local/java/jre/lib/amd64/jli/libjli.so /usr/lib/
.
Or echo /usr/local/java/jre/lib/amd64/jli/ >> /etc/ld.so.conf
from pcap4j.
It's probably the same issue as this.
Setting LD_LIBRARY_PATH to include where libjli.so is may solve the issue.
from pcap4j.
I tried this method to set libjli.so in the PATH, but it did not work either. I tried following in either /etc/profile or ~/.bashrc:
libjli.so path
export PATH=/usr/local/java/jre/lib/amd64/jli/libjli.so:$PATH
Later, I tried:
libjli.so path
export PATH=/usr/local/java/jre/lib/amd64/jli:$PATH
They did not work at all. Then I tried root,
under root account, java -v does not work, but java -version does work....
from pcap4j.
How was LD_LIBRARY_PATH? Did you try it?
from pcap4j.
Yeah, I just tried it with the following code in either /etc/profile or ~/.bashrc:
export LD_LIBRARY_PATH=/usr/local/java/jre/lib/amd64/jli
export PATH=${LD_LIBRARY_PATH}:$PATH
#export PATH=/usr/local/java/jre/lib/amd64/jli/libjli.so:$PATH
It did not work. T-T, sad Saturday afternoon.
from pcap4j.
Thank you. The first command works! I appreciate your help.
I have not tried the second command.
BTW, I am curious why the both commands would work.
Why making such soft link could solve the problem? Does that mean to add the file to lib path?
from pcap4j.
You are right.
The error occurred because java couldn't find a shared library, libjli.so. The reason why the java lost sight of it after setting setcap cap_net_raw,cap_net_admin=eip is explained at the link I indicated above.
All of my suggestions intended to let the java know the place of libjli.so. Generally speaking, shared libraries are searched in specific directories. LD_LIBRARY_PATH
and /etc/ld.so.conf
are to specify the directories. ln -s /usr/local/java/jre/lib/amd64/jli/libjli.so /usr/lib/
is another approach that adds libjli.so to the directory (i.e. /usr/lib/) which is searched by default.
from pcap4j.
Thank you. BTW, pcap packet seems to contains no timestamp, instead, I have
to use handler.gettimestamp method to retrieve the time. Will this cause
any time errors? Is there a method to retrieve packets that contain
timestamp inside of them?
On Sat, May 14, 2016 at 2:20 AM, Kaito Yamada [email protected]
wrote:
You are right.
The error occurred because java couldn't find a shared library, libjli.so.
The reason why the java lost sight of it after setting setcap
cap_net_raw,cap_net_admin=eip is explained at the link I indicated above.
All of my suggestions intended to let the java know the place of
libjli.so. Generally speaking, shared libraries are searched in specific
directories. LD_LIBRARY_PATH and /etc/ld.so.conf are to specify the
directories. ln -s /usr/local/java/jre/lib/amd64/jli/libjli.so /usr/lib/
is another approach that adds libjli.so to the directory (i.e. /usr/lib/)
which is searched by default.—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#63 (comment)
from pcap4j.
No, PcapHandler#getTimestamp() returns a correct timestamp.
from pcap4j.
This blog explains the reason .
from pcap4j.
Related Issues (20)
- [Linux os][Windows "System32" Path.get] crash on init HOT 2
- Install native libs (Npcap/libpcap) programmatically automatically HOT 1
- win10pcap can't get the linklayerAddress,it's not compatible
- How can I get mac address? HOT 2
- support 802.1x?
- Unknow tcp option doesnt support reserved options
- Moving forward with 2.0.0?
- About the getNextPacketEx problem under linux
- with pcap4j find the process name which makes the network traffic in windows with java
- Having trouble retrieving package data HOT 2
- macos issues
- How to get source and destination Ip from TCP packet HOT 1
- Library does not initialise on Linux HOT 2
- Runing on the a linux service reports a null pointer exception
- 通过抓包或者分析数据包,如何将HTTP的请求和响应关联起来呢?
- Getting timestamp and src/dest IP addresses for UDP packet? HOT 5
- Ignore this...
- Decoding mDNS packets?
- The problem of capturing WiFi wireless network packets
- Help Me with privileges please HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcap4j.