Rather than try and create the database and then have an alternate plan if it fails, you could check to see if the file exists and it if doesn't, create it.
The DatabaseManager code that I posted to the wiki shows one approach for this: http://wiki.apache.org/db-derby/DatabaseManager Donald
