How to resolve UnsatisfiedLinkError when running 'PDFNet for Java' on Linux.

Q: I've tried running the JAVA examples, and get the following error:
IMac-Intel:JAVA nathanieltrevivian$ ./
Exception in thread "main" java.lang.UnsatisfiedLinkError: no PDFNetC
in java.library.path
  at java.lang.ClassLoader.loadLibrary(
  at ImageExtractTest.main(

Any ideas?
A: It is possible that Java can't find '' shared library.
Are you able to run any of JAVA samples on Linux? ('cd /PDFNet/
Samples', then 'sh'). I tried to set LD_LIBRARY_PATH
and this seems to do the trick:

java -classpath .:/PDFNet/Lib/PDFNet.jar MyTest
For more info, please search "LD_LIBRARY_PATH" on the Net.
In case you would like to avoid setting the "LD_LIBRARY_PATH", you may
want to copy the shared library to a standard search path for shared
libraries (e.g. '/usr/local/lib').