Give your project a name (I called mine jdbc-example), and select whatever options you want. This is the same way you create any Java project using the JDBC driver makes no difference in this step. OK, I’m going to create a new Eclipse Java project to contain some examples of using the JDBC driver, and then I’ll install the JDBC driver into that.įrom the Eclipse menu, select File, then under that, select New, and then Java Project. Installing the JDBC driver into an Eclipse project At the time that I wrote this post, the latest version was 3.30.1 - download the file named sqlite-jdbc-3.30.1.jar, or a more recent version if there’s one available when you read this. You can get the JDBC driver from a page on BitBucket. The code for the JDBC driver is available on GitHub at, and there’s extensive documentation linked from that page. Luckily, somebody has created a JDBC driver wrapped around the C language library, so that we can use it in Java programs. Wait a minute, SQLite is a C language library - I want to use it in Java! SQLite is built into all mobile phones and most computers and comes bundled inside countless other applications that people use every day. SQLite is the most used database engine in the world. SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine. So, in this post, I’m recording steps on what I had to do to use SQLite with JDBC in Eclipse on Windows, and I also have some really simple sample code showing how to use it. I decided the easiest way to do it was with SQLite, but it’s been quite a while since I used SQLite in Java. I’m working on a little project written in Java, and I want to have a simple database in it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |