Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7066967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:08:41+00:00 2026-05-28T05:08:41+00:00

I haven’t used SQLite before and I am looking if I could use it.

  • 0

I haven’t used SQLite before and I am looking if I could use it.

I am puzzled a bit. For example there does not seem to be a jdbc driver associated with SQLite that comes from the official SQLite.
I have found some posts/sites (some appear old links) that offer the jdbc driver but I am reluctant on how stable these drivers are or if they are missing features.

Additionally I am not clear on the usage of SQLite.

For example I tried the following code:

public static void main(String[] args) throws Exception {
        Class.forName("org.sqlite.JDBC");
        Connection conn = DriverManager.getConnection("jdbc:sqlite:test.db");
        Statement stat = conn.createStatement();
        stat.executeUpdate("drop table if exists people;");
        stat.executeUpdate("create table people (name, occupation);");
        PreparedStatement prep = conn.prepareStatement(
            "insert into people values (?, ?);");

        prep.setString(1, "Gandhi");
        prep.setString(2, "politics");
        prep.addBatch();
        prep.setString(1, "Turing");
        prep.setString(2, "computers");
        prep.addBatch();
        prep.setString(1, "Wittgenstein");
        prep.setString(2, "smartypants");
        prep.addBatch();

        conn.setAutoCommit(false);
        prep.executeBatch();
        conn.setAutoCommit(true);

        ResultSet rs = stat.executeQuery("select * from people;");
        while (rs.next()) {
            System.out.println("name = " + rs.getString("name"));
            System.out.println("job = " + rs.getString("occupation"));
        }
        rs.close();
        conn.close();

    }

This code creates a database file in my application directory.
So I guess the jdbc.jar creates this???
So I don’t need to run the sqlite3.exe that I downloaded? Where should I get the jdbc driver from?

UPDATE:
This is my point. The link provided in one of the answers of PKeidel (http://www.zentus.com/sqlitejdbc/) is to a site that seems not to have been updated from 2009

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:08:41+00:00Added an answer on May 28, 2026 at 5:08 am

    You can download the JDBC Driver from here: http://www.zentus.com/sqlitejdbc/

    The sqlite3.exe is only needed when you work with your command line on your windows pc. You don’t need it when you want to access a database with Java.

    From Java you have to:
    – download the JDBC Driver
    – add it to your project/classpath
    – call Class.forName("org.sqlite.JDBC");
    – now you can use it like in your first post

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I haven't used the implements keyword before, and I've been trying to use it
I haven't used the Zend Router much yet so not sure how difficult or
haven't used regex replaces much and am not sure if how I have done
Haven't found in docs. Does java ResultSet supports query arguments,like jdbcTemplate? For example, something
Haven't seen this feature anywhere else. I know that the 32nd bit is used
I haven't used C++ since college. Even though I've wanted to I haven't needed
I haven't completely understood, how to use sigprocmask() . Particularly, how the set and
I haven't done a lot of work with multi-level, pure CSS drop-down menus before,
I haven't found any documentation on this or seen this done before, but is
Haven't found what i'm looking for so far. I want to redirect all my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.