hellovidyasagar wrote:
> Hi,
> we are working on JNI and Junit perf tool while accesing native
> methods very first time the test passes successfully for next
> iteration we are getting
> java.lang.UnsatisfiedLinkError: InitializeTCCommDLL
> at TCImpl.InitializeTCCommDLL(Native Method)
> at TCImpl.testMain(TCImpl.java:69)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
> java.lang.UnsatisfiedLinkError: Native Library C:\Public\08012003
> \perf-tool 11-11 AM\TCImpl.dl
> l already loaded in another classloader
>
> In Some help docs we found JNI inforces an additional restriction
> that only one classLoader in a JVM may possess a particular native
> library. That's the gist of the problem with the ReloadingTestRunners.
> Is it true? if so how can we test native calls using JNI and
> Junitperf?
>
Please you tell us more about the test runner you're using, or if you're
using the <junit> task in Ant.
Mike
--
Mike Clark
http://clarkware.com
(303) 589-3812