2

I'm trying to access "cert8.db" mozilla file which is a BDB database. I know that there are bindings for languages, Java among them, but I'm trying to build a multiplatform app so I think that using JNI such as this one would be a problem.

Thanks in advance.

cort
  • 1,088
  • 1
  • 11
  • 20
  • 1
    I had this in an answer but I deleted it cause it wasn't actually a useful answer. Oracle bdb java edition is actually pure java but it has a different on-disk format. More info in this faq entry: http://www.oracle.com/technology/products/berkeley-db/faq/je_faq.html#2 – wds May 20 '10 at 12:37
  • That's right, I'm trying to access a native BDB (made by mozilla firefox). – cort May 20 '10 at 14:24

1 Answers1

2

You don't need full BDB package to read that file. Check out this class,

http://sam.nipl.net/code/mindterm/com/mindbright/bdb/DBHash.java

ZZ Coder
  • 74,484
  • 29
  • 137
  • 169
  • 1
    No. Read-only. If you are going to write, you should just convert it to the format used by Sleepycat Java library. – ZZ Coder May 20 '10 at 20:03
  • @J-16 SDIZ: Thanks for the updated link. I wish they'd used a standard license, with the Mindterm Public Source License I have no idea if I can use this code... – Thilo Jun 11 '11 at 08:10