db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oldmhe <mhe1943-oldnab...@yahoo.com>
Subject can't delete my DB directory
Date Fri, 04 Jun 2010 16:51:10 GMT

Prior to exiting, my Java program issues a shutdown, and then tries to delete
the DB directory (recursively), but is not able to completely delete the
directory.  Here's the code:

	try {
	} catch (SQLException eSQLException) {
		if (
				eSQLException.getErrorCode() == 50000
		   ) {
										// successful shutdown
		} else
	removeDir(new File(dbnmString)); 	// remove DB directory

(removeDir is my own function)

If removeDir() is called before connecting to the DB, it works fine.  But
the above call to removeDir() only deletes some of the files and directories
within dbnmString -- as if Derby is still accessing them (or has not closed

I also tried dropping the DB just before the shutdown code, with the same

Any ideas would be appreciated.

View this message in context: http://old.nabble.com/can%27t-delete-my-DB-directory-tp28782490p28782490.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.

View raw message