Possible Duplicate:
How to bundle a native library and a JNI library inside a JAR?
I need to include native lib (jnotify but I think that it does't matter) to my jar. I want to do it with NetBeans.
I added Bundle-NativeCode: /lib/jnotify.dll; osname=win32
to my manifest.mf
file and added jnotify.dll
to projektHome\src\lib\
folder. But unfortunately NetBeans is overidning manifest.mf
file.
How can I fixed? Can I do this using only NetBeans? Is it line 'Bundle-NativeCode: /lib/jnotify.dll; osname=win32
correct? I also heard I should put dlls hash in manifest.mf
and sign my jar. Is that true?