cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kpant13
Level 3

How to put a jnilib in to Contents/Resources/Java folder

Hi ,
I want to put my jni library in to Contents/Resource/Java directory of installer.app. I want to do it programatically not manually.

Actually my custom code needs to load a jni library using System.loadLibrary api when I launch installer.
This library exists in my customcode jar along with other classes.When I launch my installer I got a error like no library found in java.library.path.
So If I maually put that jnilib in to Contents/Resources/Java/ directory of installer.app or /System/Library/Java/Extension then everything works fine.

So what I need is just to bundle the jnilib with installer's Resource/Java directory while building the installer.But I don't know how to do this?

Thanks in advance!
-kpant13
Labels (1)
0 Kudos
(2) Replies
nosrednayduj
Level 7

Did you ever figure this out? I may be needing to call some JNI code in my installer (requirements and design not finalized), and I'm trying to find out if it's going to work!
0 Kudos
RobertDickau
Flexera Alumni

You might see if the technique in [thread=184454]this thread[/thread] works for you.
0 Kudos