I am trying to use the H2 database from a Java application.
I created the database and its tables through the H2 Console and then I try to connect from Java using <
Ran into a similar issue the solution for me was to run fuser -k 'filename.db' on the file that had a lock associated with it.
fuser -k 'filename.db'
Hope this helps!