[Openjnlp-devel] FileCacheClassLoader and Native Methods
Brought to you by:
kherr
From: Doug Z. <dz...@ho...> - 2001-11-04 05:31:59
|
I've got a Java app (Mac OS9) that uses a JNI library, and I'm trying to get it to work with OpenJNLP 0.4. As stated in the doc, this does not work (I'm getting an UnsatisfiedLinkError exception thrown on the first native method invocation). I can work around being unable to distribute the native lib via JNLP, but being unable to invoke native methods is a problem. From reading Apple's java-dev list, it looks to be a problem with the ClassLoader implementation. If this is the case, is there a mod I can apply to FileCacheClassLoader so my app can at least start hobbling along until native lib support is released? I looked in CVS and didn't see anything new since 0.4. Or am I barking up the wrong tree here? I know that the native lib is loading OK, as I ran through the procedure in TN 1155, which reported it loading without error, and it runs fine when launched directly from the Finder. This suggests that the issue lies somewhere that OpenJNLP does things differently than a Finder launch, and FileCacheClassLoader fits the bill. Unfortunately, so do other things. The correspondent on java-dev suggested that the SecurityManager could be vetoing the native method call, but I do not see anyplace where OpenJNLP is installing a SecurityManager. Any suggestions would be greatly appreciated. |