If you are running with a security manager on JDK 8 or higher, you must grant the following permission to derby.jar to allow the JDBC driver to be deregistered:
See "Configuring Java security" in the
If you are running with a security manager on JDK 6 or 7, you do not need to set this permission.
You initially register the embedded driver by calling a DriverManager method such as DriverManager.getDrivers() or DriverManager.getConnection().
Once the embedded driver is registered, you can shut down the
In contrast, if you use the default setting of deregister=true when you shut down the database, the following will happen:
This attribute has no meaning if it is used with the network driver.
This attribute is valid only when issued in conjunction with the shutdown=true attribute.