|
From: Bernhard B. <ma...@ba...> - 2003-07-12 14:08:31
|
Hello Rune,
I think I will add a new public method setLibrary(). Could you contribute y=
our=20
code for extracting and loading the native library from the jar file? We=20
could then put getline.so and getline.dll into the jar and extract and use =
it=20
as the default fallback solution.
Bernhard
> Hello,
>
> I have a request for an enhancement to the java-readline library.
>
> Readline.iLib is a private variable. The only way to set it, is
> through Readline.load, which attempts to load the file through
> System.loadLibrary().
>
> This does not work if the location of the so file is not known prior
> to starting of the java program (in my case, it is a jar file), and
> java isn't to happy about honoring a
> System.setProperty("java.library.path", path). However, there is also
> System.load(), which accepts a filename as argument, thus one could,
> after determining os, extract the relevant so file to a temp directory
> and load it from there.
>
> It would therefore be great if you could either add a test to
> Readline.load() to check if the library is already loaded (I've been
> unable to find out how to do this), or simply add a new public method
> setIlib().
>
> Regards,
> Rune Fr=F8ysa
|