when I try to create a database in H2 in the web console with the following url
jdbc:h2:tcp://localhost/data/vervikMonitor
I get the following error:
IO Exception: "java.io.FileNotFoundException:
C:\Program Files\H2\bin\data\vervikMonitor.lock.db (No access)";
"C:/Program Files/H2/bin/data/vervikMonitor.lock.db" [90031-162] 90031/90031 (Help)
I have a norwegian version of Windows, so the path to my program folder is C:/Programfiler/ – why does H2 try to access the english style c:/Program Files/, where is that reference stored?
Try absolute paths (note the
//):Of course you must make sure that
C:\data\vervikMonitoris writable. Or you can use a different directory 🙂