LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem with jpcap (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-jpcap-539697/)

tklima 03-22-2007 02:12 PM

Problem with jpcap
 
Hi, I am trying to use jpcap under linux. I installed it according to the README, added /usr/java/jdk1.5.0_11/jre/lib/i386/ to /etc/ld.so.conf, lauched ldconfig to link libjpcap.so and set
CLASSPATH=.:/usr/java/jdk1.5.0_11/jre/lib/ext/ export CLASSPATH to the path where jpcap.lib is placed.

When I try to run the Tcpdump example I get this error message: Exception in thread "main"

java.lang.NoClassDefFoundError: Tcpdump
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: jpcap.PacketReceiver not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass
(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.VMClassLoader.defineClass(libgcj.so.7rh)
at java.lang.ClassLoader.defineClass
.
.
.

Does anybody know, where the problem could be? I use FC6 2.6.18-1
Thanks in advance. Tom


All times are GMT -5. The time now is 10:37 PM.