Moses DeJong writes:
 > Does anyone know what JNI problem this fixes?

Yeah, well. Brian forwarded my message, which says:
 > problems with JNI/Invocation with JDK 1.1.7v1a+native 
 >  for apps that use libdl.so,

Invocation does not work in certain patterns. The script
comment lists those:
 > # The app in question is linked against libdl.so,
 > #  but not linked against libjava.so. It does
 > #  use dlopen("libJ.so"), and libJ.so is linked
 > #  against libjava.so. libJ.so does invocation 
 > #  of a JVM, app is not Java aware.
 > # Without the preload, this fails 
 > #  on every RH 5.x and Debian 2.x I tried so far.

I can dig out the URL for my sample code if you really
need that, it is even simmpler (dlopen("libjava.so"),
dlsym(.., "JNI_CreateJavaVM") used to dynamically load
the JVM).

Moses writes:
 > program on the blackdown 1.1.7 native threads port but I could not
 > get it to work. I go a "could not find java.lang.Object" error when
 > calling JNI_CreateJavaVM. Does anyone know if this is related?

You did set the classpath with invocation (vm_args)? The
default classpath provided by Blackdown JDK ports is crap,
so you better replace it completely. 


                                               b.

Reply via email to