Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

how to open cookies file in java

  • 4 cavab
  • 4 have this problem
  • 3 views
  • Last reply by CodeGust

more options

I am writing a java application that shows FireFox cookies. Is it possible to open the cookies.sqlite file and read that database in Java? I tried with org.sqlite.JDBC driver but without success. And got exception: file is encrypted or is not a database

I am writing a java application that shows FireFox cookies. Is it possible to open the cookies.sqlite file and read that database in Java? I tried with org.sqlite.JDBC driver but without success. And got exception: file is encrypted or is not a database

All Replies (4)

more options

Will your application install as an extension? In that case, you can use XPCOM: https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsICookieManager

If your application is meant to run as an applet in a web page, your application probably does not have permission to access cookies, other than the ones set by the same host.

more options

Thank you. My application is meant to run as an applet in a web page. Still I hope it's possible to access firefox cookies from an applet somehow.

more options

For help on this, you could try the Extension Development forum at MozillaZine: http://forums.mozillazine.org/viewforum.php?f=19

more options

Thank you very much! I'll try it.