java.library.path question

From: Ed Thompson (ethompson7_at_carolina.rr.com)
Date: 03/30/04


Date: Mon, 29 Mar 2004 23:12:13 GMT

I moved a java program from my PC to a Solarix box. Whne I ran the
program, it complained about not finding a 32bit version of
the shared object JDBC uses to access the Oracle database.

If I add $ORACLE_HOME/lib32 to the LD_LIBRARY_PATH, all is well.
But I wanted to make thigs less OS specific, so instead I added
-Djava.library.path=$ORACLE_HOME/lib32 to the command line.

When I do this, the JDBC shared object is found, but it complains that
another shared object required by the first is nOT found, even though it
is in the same directory.

Can anyone shed some light on the behavior of -Djava.library.path=

(Sorry not more specific with error msgs - I am writing this from home -
can provide additioonal info if someone can help)