Java and SQLite Connectivity

Hi,

I m trying to establish connectivity between java and SQLite.

This is the code :

import java.sql.*;

publicclass get

{

publicstaticvoid main(String[] args)

{

String url ="jdbc:sqlite:/E:/SQL Lite DB/keywording/keywording.db";

Connection con;

String query ="select * from THESAURUS_SYNONYM";

Statement stmt;

try

{

Class.forName("SQLite.JDBCDriver");

}

catch(Exception e)

{

e.printStackTrace();

}

}

}

I have set Classpath for sqlite.jar file like :

java -cp E:\SQL Lite DB\sqlite.jar

It is giving error:

java.lang.ClassNotFoundException: SQLite.JDBC2y.JDBCConnection

I have opend jar file and see that this jar file contain package name JDBC2x and classes.

I have changed name of package to JDBC2y and make jar file and then use it but it is not working.

Please tell how can i get suitable jar file for this program. Tell me whole process for establishing connection between java and SQLite. Tell me some useful links for codes that establish connection between java and SQLite.

Please reply me in detail.

Thanks & Regards

Nitin

[1792 byte] By [Nitin_Aga] at [2007-10-2 7:47:47]
# 1
Continuing bravely on from the previous thread to be found here http://forum.java.sun.com/thread.jspa?threadID=691692&messageID=4020878Highlight of the previous thread featured opening the jar and changing the package names.
Nitin_Aga at 2007-7-16 21:34:27 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
This thread contain my questions , i want solution for that.I have tried all that thing.Please provide me solution.ThanksNitin
Nitin_Aga at 2007-7-16 21:34:27 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
Where did you get this jar from?
Nitin_Aga at 2007-7-16 21:34:27 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 4
I get this jar file from the j2sdk1.4.2_03 kit. Please provide me good link for jar file of SQLite.ThanksNitin
Nitin_Aga at 2007-7-16 21:34:27 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 5
Where did you get the sqlite.jar from?
Nitin_Aga at 2007-7-16 21:34:27 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 6
i search in google then i get that jar file. i forget that link. Please tell me link for good jar file.ThanksNitin
Nitin_Aga at 2007-7-16 21:34:27 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 7

I don't have a link for the good jar file because I have never used SQL Lite. I suggest you google and find the site where you got that jar or find a new one but either way save the link! Because where ever you get that driver from will have instructions on how to use it properly.

That is the best and quickest way for you to resolve this problem.

Nitin_Aga at 2007-7-16 21:34:27 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...