Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java JNI and DYLIB problem



I'm not sure that dylib and jnilib have the same library path policy
AFAIK dylib keeps installation information within itself
JVM doesn't know about dylibs, but JVM fail to load jnilib
if that jnilib won't be able to find required dylibs

so it's probably wrong to think that paths like /Library/Java/Extensions
are relevant for dylibs loading

usually I set install path to @executable_path/../Resources/Java
(when I create application bundle)

if you set install path to / then dylib will be loaded from /

Dmitry Markman

On Friday, Aug 29, 2003, at 23:24 US/Eastern, Shashikant Hire wrote:

Hello

I have developed java application. This application depends upon jni lib.
The application is downloaded to user machine using signed applet.
after downloading application start the downloaded java application. using
System.Runtime.exec() which create new VM. I set java.library.path to folder
where jnilib and dylib is copied. But while running the application java is
throwing error that it could not find dylib in library.path.

Then I copied dylib to root folder and it work. Why it so?
Even copying dylib in Library/Java/Extension does not work?
Even I try to change user working directory it does not work, why?

During development stage when application is run using command line it
works. But when application is executed using browser (IE) it does not work?
I have to copy dylib in user root directory "/".

Regards
Shashi
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >Java JNI and DYLIB problem (From: "Shashikant Hire" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.