Programmatically setting derby.system.home
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 folder with the name of the database (in my case mydb), but I want to move that dir into a subdir called data/ creating data/mydb. I can do this with the connect call: DriverManager.getConnection("jdbc:derby:data/mydb;create=false"); and this works. But I'd like to programmatically explicitly set the value of derby.system.home=data/ derby.stream.error.file=log/derby.log So I can do: DriverManager.getConnection("jdbc