Bug when using both Jpcap + jFreeChart Libs

B

Bentow

Hello Everybody,

I'm involved in a project using JpCap and Graphs.
When I run my JPCAP application solely, it works just fine. But, when
I add the jFreeChart + jCommon libraries to the classpath the
following error appears on screen:
--
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jpcap in
java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at jpcap.JpcapCaptor.<clinit>(JpcapCaptor.java:251)
at core.ThreadRTP.main(ThreadRTP.java:82)
--

I filtered the error so I know it happens only when I add both
libraries, if don't include them, it works just fine.
Did anyone have problem with this, or something similar?

Cheers
 
B

Bentow

Hello Everybody,

I'm involved in a project using JpCap and Graphs.
When I run my JPCAP application solely, it works just fine. But, when
I add the jFreeChart + jCommon libraries to the classpath the
following error appears on screen:
--
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jpcap in
java.library.path
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at jpcap.JpcapCaptor.<clinit>(JpcapCaptor.java:251)
        at core.ThreadRTP.main(ThreadRTP.java:82)
--

I filtered the error so I know it happens only when I add both
libraries, if don't include them, it works just fine.
Did anyone have problem with this, or something similar?

Cheers


Solved!!!

I don't know why, but after I add these 2 libraries, I need to
explicitly put into the VM arguments:
-Djava.library.path=c:\windows\system32\

Crazy java eheheh

Cheers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top