Thursday, June 07, 2007

Native libraries in NetBeans modules

The NB wiki and documentation says you can put your dll or so files in the 'lib' directory of your module, but I think a little example can be a more good explanation.

Supose you need a module wrapper for your new NB platform based application. Imagine you want to use the JAI API and distribute your application for Windows and Linux.
Right, after create the module wrapper (with the NB wizard) you'll can see a directory named (see the file view):

jai-wrapper\release\modules\ext

containing the JAR files, but what about the dll/so files?
The answer is put it in the:

jai-wrapper\release\modules\lib

See the previous links to the documentation if you have equal names for diferents SO's in your dll/so files.

No comments: