This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- How to put a jnilib in to Contents/Resources/Java folder
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 31, 2008
04:24 AM
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
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
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 22, 2008
11:13 AM
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!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 22, 2008
12:34 PM
You might see if the technique in [thread=184454]this thread[/thread] works for you.