initNative() kaffe 1.0b2
Archie Cobbs
archie at whistle.com
Fri Oct 9 10:45:11 PDT 1998
James Lundblad writes:
> I think it would be nice for compatibility reasons if initNative() (
> kaffe/kaffevm/external.c ) would use the LIBRARYPATH ( aka
> LD_LIBRARY_PATH ) ala 1.0b1 when both Kaffe_JavaVMArgs[0].librarypath
> and Kaffe_JavaVMArgs[0].classhome are uninitialize ( == 0 ).
> This allows JNI code that worked for 1.0b1 and the JDK to work without
> modification.
Hmm.. shouldn't the algorithm just be this?
lpath = Kaffe_JavaVMArgs[0].librarypath
if (lpath == 0) {
lpath = getenv(LIBRARYPATH);
}
home = Kaffe_JavaVMArgs[0].classhome
Construct path as: lpath+home
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
More information about the kaffe
mailing list