0

libnet.so is the system library that Java (linux distro) uses for all its native networking calls. I'm trying to debug a complicated networking issue involving a Java app, and need to take a peek at some code inside this module.

But for the life of me, I can't find where the source code would be hosted. Not extremely concerned with the version here, so long as its a recent release. Thanks in advance!

4

2 回答 2

1

对于 RHEL6,源 RPM 位于此处: http://rpm.pbone.net/index.php3/stat/26/dist/74/size/1192857/name/libnet-1.1.5-1.el6.src。转数

于 2013-04-25T20:24:07.347 回答
0

如果您可以使用 rpm,那么您可以从此处获取 openjdk 的 CentOS 源 rpm 。

为什么是openjdk:

根据我的工作站:

find /usr -name libnet.so

指向/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libnet.so,和

rpm -q --whatprovides /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libnet.so

返回 java-1.6.0-openjdk-1.6.0.0-1.57.1​​.11.9.el6_4.x86_64

于 2013-04-25T20:23:41.560 回答