Static executables
Tom Tromey
tromey@redhat.com
Tue Jan 31 20:03:00 GMT 2006
>>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
>> > As for JNI, as far as I'm aware it requires dynamic loading.
>> Hmm, I didn't know that :-( . Then I think I have to give up on this,
>> since the JNI part is vital in this case ...
Andrew> I don't know JNI well enough to be sure. Maybe someone else can help.
I think it can be done via 'libltl preloading'. However, I don't
remember hearing about anybody actually trying this.
Essentially the problem is that JNI methods are looked up by name.
libltdl provides a way to preload libraries for systems without
dynamic loading, making the name->function mapping available.
Another approach would be to start up the VM by hand and use the JNI
RegisterNatives API.
Tom
More information about the Java
mailing list