Show FireFox cookies with Java
I am writing a java applet that shows FireFox5 cookies. I need to open the cookies.sqlite file and read that database in Java.
I tried with org.sqlite.JDBC开发者_C百科 driver and got exception: file is encrypted or is not a database. Do I really need to decrypt the file first or get a permission? I tried SqlJetDb and it gives exception org.tmatesoft.sqljet.core.SqlJetException: NOTADB: error code is NOTADB
Is there anything else do the task of showing FireFox5 cookies? Thanks.
Is it a signed applet? By default Java applets run in a sandbox for security and cannot access the filesystem: http://download.oracle.com/javase/tutorial/deployment/applet/security.html
Python has a builtin sqlite database. You can manipulate the cookies.sqlite through Python, copy the data to a text file and then use a Java application, but through Java applet, I don't think it's possible.
精彩评论