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$ ./RunTest.sh
Exception in thread "main" java.lang.UnsatisfiedLinkError: no PDFNetC
in java.library.path
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1753)
  at ImageExtractTest.main(ImageExtractTest.java:81)

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

LD_LIBRARY_PATH=/PDFNet/Lib/:$LD_LIBRARY_PATH
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').