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()