Setting javalibrarypath in webMethods

In Unix, when I run a java program that calls a native function, I do the following:
java -Djava.library.path=/path/libnative.so javapgm

In webMethods, where do I set -Djava.library.path?

I have tried setting the following but it does not work:
export LD_LIBRARY_PATH=/path/libnative.so
export CLASSPATH=/path/javapgm.jar

Any idea?

If you are using an adapter, go to the adapter_config tool and choose the ‘Java’ tab. Put your -D options in the field labeled JVM options.

-greg

export LD_LIBRARY_PATH=$WMPATH/lib
export LIBPATH=$WMPATH/lib