This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
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: 590
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: 590
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?
wood burning stoves
subject: No Sqlite Library found
Similar Threads
Hello, using Modified Makefile to compile SQLiteJDBC
Using Eclipse SWT Image, JDBC SQLite and JAVA to insert, store and retrieve Images.
JNI error
"jni_md.h: No such file or directory"- Error Message while compiling C source code
problem with JNI( compiling .C file)