This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
But that doesn't work, or I wouldn't be posting here
I've tried every variation I could think of:
Plus replacing forward slashes with double backslashes (I'm on a windows 7 system at the moment), and every combination of slashes and dots I can think of. I haven't been able to find the specification for the "file_in_jar" notation mentioned in the HSQLDB documentation.
If I access the files that get compiled into the jar with a URL like this:
then it will work. Obviously this doesn't help me for deploying an application though.
My database was actually "appDb" in camel-case, and apparently HSQLDB does not support camel-case in resource mode for some reason.
After fixing that, I was getting the following error...
The solution to that was to modify db.properties (in the jar source). Somehow the "modified" flag had been set to true. Setting that back to false allowed the database to work. While I was in there, I set "readonly" to true for safety.