Standard JDBM code opens databases read/write. This doesn't play nicely when coming from a read-only medium such as a DVD. Since we have already modified this code slightly (to help with closing file handles), I have further modified the code to try to open rw but fall back to r if that doesn't work. Transaction logging (it almost goes without saying) should also be turned off in the read-only condition.