For saving the storage space, sqlite-jdbc extracts a native library
using a same file name across multiple programs using sqlite-jdbc driver.
I think setting an alternative directory to java.io.tmpdir, to which
native libraries are extracted, is the best practice,
because deleting the native library file might causes an error when
other programs using sqlite-jdbc of the same version exist.
Adding an option to sqlite-jdbc to use a user-specified native library
file/directory name is possible.
And calling File.deleteOnExit() method to delete the native library
files is an easy way to do what you said.
Regards,
--
Taro L. Saito
<l...@xerial.org>
University of Tokyo
http://www.xerial.org/leo
Tel. +81-47-136-3985 (63985)