Thanks for the reply, Gordon.
>Post the full text of the exception.
>I'll assume that C:\WINDOWS is in your PATH...
> Thanks for the reply, Gordon.
>
[quoted text clipped - 9 lines]
> at network.Sniffer.run(Sniffer.java:170)
> at java.lang.Thread.run(Unknown Source)
From the error message it is clear that the DLL was found and
successfully loaded. The error is that it does not appear to contain
the expected method "open".
Have you compiled the DLL or did it come pre-compiled with jpcap?
Use a tool like dumpbin, depends or quickview to display the actual
contents of the DLL. Confirm that it does contain the method, and that
the symbol name has not been mangled by the compiler.
Do you have different versions of the jpcap library installed on your
system?
/gordon

Signature
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
cppaddict - 26 Feb 2007 20:28 GMT
>From the error message it is clear that the DLL was found and
>successfully loaded. The error is that it does not appear to contain
>the expected method "open".
I see. But everything is working fine from eclipse... which means
that 2 different DLLs must be getting read, right? Or is there
another explanation?
I verified that C:\WINDOWS is the first folder on my path that
contains a file called "jpcap.dll".
>Do you have different versions of the jpcap library installed on your
>system?
This is possible, and seems the most likely explanation. So how can I
figure out what DLL eclipse is loading, since that is obviously the
correct one?
Thanks for your help,
cpp
cppaddict - 26 Feb 2007 21:41 GMT
Someone else helped me solve this. Here are the results for
posterity:
The loadLibrary function look in the home directory, in the java
-Djava.library.path variable and in the path.
I have an old version of the DLL in java.library.path.
DOH!
Thanks for your help Gordon.