SQLException: no SQLite library found
Hi everybody! I'm using netbeans to create an erp application with a sqlite database, but i have a problem.
When i compile my program from netbeans it's all right, but when i build a jar, at the first call to the database i get this SQLException:no SQLite library found.
I've inserted the sqlitejdbc inside my application to avoid the change of classpath by user.
How can I do? Please someone help me!!
thanks, bye!
[457 byte] By [
MLI-Boccaa] at [2007-11-27 3:50:29]

# 3
I am not sure if "./" works, I have never tried it, but if you have put it in the root of the package, then just "sqlitejdbc.jar" should work. So remove the "./" from it.
# 4
Also without ./ the program throw the exception in object.
My apps is composed by principal package called application, a package called org.sqlite (extracted from the sqlitejdbc.jar) for comunication with database and I put the sqlitejdbc.jar into root folder (default package).
Another idea?
# 14
hey Luca,
i had the same experience while trying to use SQLite for one of my java project...
actually the SQLite JDBC driver comes with a DLL file for windows, you need to put that DLL file in JAVA Library Path...
get that DLL file and simply put that in where java executable is i.e. %JAVA_HOME%\jre\bin
it should work...
else use this tutorial
http://www.pysquared.com/files/Java/JavaSQLiteExample/
i suggest you dont use the pure java driver or you may or may not get Out of Memory error...