Aaron M. Renn wrote:
> 
> Hi, I'm trying to get Japhar to work with my java.net implementation
> and am having a problem.  I'm getting unsatisfied link exceptions.
> It looks to me like Japhar never even tries to load my shared library,
> which should be loaded by a call to System.loadLibrary() in a static
> initializer in InetAddress.  It appears this static initializer
> never gets called.  I replaced the call to loadLibrary with a println
> statement and nothing came out.  Replaced it with a thrown RuntimeException
> and nothing happened (until my unsatisfied link).  Any clue?

Aaron,

It's been a while since of looked at the source (and it may very well
have changed since then...), but I believe once Japhar loads a library,
it caches the results, so that even if your call to load classpath's
libjavanet succeeded, the classes would never be used, as Japhar loads
its own libraries at start up.

If I get a chance, I'll look over the source this weekend and see if
there's a relatively painless work-around.


Ian

Reply via email to