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
Author

No Sqlite Library found

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590
Sorry, it's me again
https://github.com/sjlombardo/sqlitejdbc


The library is compiled with encryption library attached.

The driver I compiled
http://www.mediafire.com/?dx7i8bfnxi52dkx

The unencrypted db file
http://www.mediafire.com/download/6vmswm54dwu4iy7/ICJB.sqlite

The encrypted file
http://www.mediafire.com/download/84qgrm5ucbt56t3/

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


Thanks
Jack
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?
Thanks
Jack
 
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)