File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes No Sqlite Library found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "No Sqlite Library found" Watch "No Sqlite Library found" New topic

No Sqlite Library found

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 634
Sorry, it's me again

The library is compiled with encryption library attached.

The driver I compiled

The unencrypted db file

The encrypted file

But I am getting SQlite library not found error
Any hints?

Seems like the jar cannot locate the sqlitejdbc.dll, but where should I put it to?

Don't know why it doesn't pass the JUnit test

I've made 2 tweaks to the source code
1) Adding #define NO_CRYPT to SqlCipher where there is #include <windows.h>
2) Adding

to jni_md.h

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 634
I finally resolved it by downloading the prebuilt library from java2s.
But One thing funny is even though I don't supply a password
to open the encrypted database, it opens it up nevertheless.
How can I prevent that from happening?
I agree. Here's the link:
subject: No Sqlite Library found
It's not a secret anymore!