System properties can be set when starting the virtual machine:
java -Dh2.baseDir=/tempThey can be set within the application, but this must be done before loading any classes of this database (before loading the JDBC driver):
System.setProperty("h2.baseDir", "/temp");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|