Need to move the database and log files of JavaDB (derby) db files into deployment directories. The database is working in the application startup directory as JavaDB creates a
The documentation (Derby developers guide: Setting Derby properties) suggests something like:
Properties p = System.getProperties();
p.setProperty("derby.system.home", "C:\databases\sample");
I've also seen
/* setting an attribute in a Properties object */
Properties myProps = new Properties();
myProps.put("create", "true");
Connection conn = DriverManager.getConnection("jdbc:derby:sampleDB", myProps);