java unsatisfiedLinkError

I have an ant build file im using to build and run a software package im developing. I'm writing an automatic build script that will each night pull a clean project from CVS, build it, and run some tests on it. I have everything running but the tests. The test requires the running of a seperate program's API (Netica (r) in case you're wondering) to be available at compile and runtime. Everything build's fine, so I am led to believe the required .jar's are on the path, but when I try to run the tests I get an unsatisfiedLinkError that a library is not on my java.library.path. I have even added the -Djava.lbrary.path=/mypath/mylibs flag to the java call, but I still get the same error. I have a libBlah.so file associated with Netica that needs to go somewhere or be pointed to somewhere and maybe thats the problem, but i know its on the classpath...any ideas?