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 4616144
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:56:25+00:00 2026-05-22T01:56:25+00:00

I’m running ubuntu. I installed sqlite3 and java via the synaptic package manager, and

  • 0

I’m running ubuntu. I installed sqlite3 and java via the synaptic package manager, and downloaded the sqlitejdbc-v056 jar.

My sqlite is working fine. I’ve written some java code that compiles, but wont run. I used ant to compile the stuff and that worked fine once i put the jar in the same place as build.xml.

When i try to run the program (by saying java program) it says: java.sql.SQLException: No suitable driver found for jdbc:sqlite:test.db

here’s some of the offending code:

 Class.forName("org.sqlite.JDBC");
 Connection conn = DriverManager.getConnection("jdbc:sqlite:test.db");

From what I’ve read thus far it’s probably a problem with my classpath, i’m not really sure how to fix it though. here’s what i’ve tried:

  1. put the .jar in the same directory as my compiled program main stuff
  2. put the .jar in the same directory as my compiled class that uses the sql stuff
  3. tried using the -classpath option when calling java from the terminal. I tried this with relative addressing first, then an absolute path
  4. 3 but with wildcards, ie …/*.jar
  5. sudo gedit /etc/environment. there was no CLASSPATH so i put this in: CLASSPATH=”.jar:/home/sheena/Java/lib/.jar:.:.*.jar:/home/sheena/Java/lib/”

I feel like i’m out of options.

on a separate but related note, i also really struggled to get javac to see the jar while i was compiling, i couldn’t get the ant stuff about the classpath right either. This part isn’t as urgent as the stuff above but here’s a little bit of build.xml:

<path id="files-classpath">  
    <fileset dir="lib/" >  
        <include name="*.jar"/>  
    </fileset>  
</path> 

…

those are just some of the things i tried.

Any ideas would be much appreciated, the internet has surprisingly little info on this topic from what i can see…

  • 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-22T01:56:26+00:00Added an answer on May 22, 2026 at 1:56 am

    try running it like this:

    java -classpath ".:sqlite-jdbc-v056.jar" ProgramName
    

    the “.:” is very important (i wasn’t sure if your tried that or not from your description). also i just guessed what the name of your .jar is, but obviously change it to reflect the actual name.

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

Sidebar

Related Questions

I am currently running into a problem where an element is coming back from
I have a French site that I want to parse, but am running into
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want use html5's new tag to play a wav file (currently only supported
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

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.