David Van Couvering wrote:

You could do this by running some JDBC that does this, or you can
include in your application jar a copy of the database directory, and
extract this into the proper location when the application starts up.

Or you could script it in SQL files and then run them via ij, which can be found in derbytools.jar, and can be embedded into your app.

See http://src.opensolaris.org/source/xref/website/auth/trunk/AuthDB/src/org/opensolaris/auth/db/DbManager.java for an example - search for 'ij.runScript'.

--
Alan Burlison
--

Reply via email to