Menu

#9 Loading the native library

closed
Andy
None
0.9.6
5
2012-04-09
2003-05-06
Anonymous
No

Javacurses has a sophisticated way of finding the
native library (in the directory where the *.jar resides).

I would like to keep the native library in a different
directory and use LD_LIBRARY_PATH.

The proposal (Toolkit.java line 36):

try {   // add
    System.load(getLibraryPath());
} catch (RuntimeException ex) { // add
    System.loadLibrary("jcurses");            // add
}

in case getLibraryPath() fails --> use System.loadLibrary()

  • congratulations to your great work!

Discussion


Log in to post a comment.