@ Paulsm4 is right.
But keep in mind that:
org.apache.derby.jdbc.ClientDriver
which can be found inside derbyclient.jar is enough to just get a connection to the Derby DB server .
But if you want to create a built-in (in memory) database when you receive a connection, then you will have to use a different jdbc driver:
org.apache.derby.jdbc.EmbeddedDriver
which can be found inside derby.jar . In addition, you must pass an additional parameter create=true . For example:
<property name="javax.persistence.jdbc.url" value="jdbc:derby:myApp;databaseName=myApp;create=true" />
Hope this helps someone.
G. Demecki
source share