Problem with JAVA invoking API function from DLL

How to simply invoke any API funcion from DLL (Windows)

Only I receive is : ERROR: xxxxxxxx.dll is not in java.library.path

Thanks for any ideas

This link explains how to set java.library.path.

If you call dll from webmethods service you’ll need to alter java.exe parameters according to it.
I never used JNI from within of webmethods but I can’t see any reason why it would not work.

How about just dropping the DLL in your package’s /code/libs directory and generating a C service using the Developer New Wizard (it requires a predefined service Specification, but otherwise seems straightforward).