5To run Java stored procedures or user-defined functions, the Linux run-time 5linker must be able to access certain Java shared libraries, and DB2 UDB must 5be able to load both these libraries and the Java virtual machine. 5Since the program that does this loading runs with setuid privileges, it looks 5for the dependent libraries only in the /usr/lib directory.
56Create symbolic links in the /usr/lib directory to point 6to the Java shared libraries.
5For the IBM Developer Kit 1.3, you need symbolic links to 5libjava.so, libjvm.so, and 5libhpi.so. You can create the symbolic links by 5running the following commands as root:
5 cd /usr/lib 5 ln -fs JAVAHOME/jre/bin/libjava.so . 5 ln -fs JAVAHOME/jre/bin/classic/libjvm.so . 5 ln -fs JAVAHOME/jre/bin/libhpi.so .
5where JAVAHOME is the base directory for the SDK. If DB2 5UDB cannot find these libraries, you will get a -4301 error when trying to 5run a Java routine, and there will be messages in the administration 5notification log about libraries not found.