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/ 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/
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.


export LIBPATH=$WMPATH/lib