[Openjnlp-devel] ClassLoader, Native Methods, and Java 1.1
Brought to you by:
kherr
From: Doug Z. <dz...@ho...> - 2001-11-20 06:27:03
|
> On Saturday, November 3, 2001, at 11:31 , Doug Zwick wrote: > > [...] > > 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 > [...] > > 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. > > You are absolutely correct about this, it is a limitation of OpenJNLP's > class loader. This is being added to the next version, which is making > progress. There are other things being done as well, the class loader > work hasn't started yet. I'd suspect you'll see some class loader > changes in CVS this week. I've just been looking at the recent update to FileCacheClassLoader, and its one of the Java-2-only changes (java.net.URLClassLoader is 1.2+). We are getting pressure to demo something under OS 9. Is the limitation of the old FileCacheClassLoader something that can be hacked around? I'm not yet clear on why the old code is failing when a native method is called. Any hints at a work-around would be greatly appreciated, or pointers to documentation on the inner workings of a ClassLoader. -DCZ |