benoit doll benoit doll - 28 days ago 9
Java Question

"does not support writing" IOException when opening Access 97 .mdb file with Jackcess

I need to open an .mdb file to recover some genealogy data.

I try Jackacess 2.1.5 but I get the following

java.io.IOException



file format [V1997 [VERSION_3]] does not support writing for Genealogy.mdb


How can I avoid this?

Answer

You will get that exception with an Access_97 database file if you try to do

Database db = DatabaseBuilder.open(new File(dbPath));

but you can avoid the exception if you do this instead

Database db = new DatabaseBuilder()
        .setFile(new File(dbPath))
        .setReadOnly(true)
        .open();