Home  >  Forum  >  Database
Post New Query

java.lang.ClassNotFoundException: org.sqlite.JDBC


joined on
December 18,2014
Asked on July 31,2015
Hi I am integrating SQLite with JDBC and getting the following error. What is wrong?

Exception in thread "main" java.lang.ClassNotFoundException: org.sqlite.JDBC
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)

joined on
November 18,2013
Replied on August 03,2015

org.sqlite.JDBC belongs to sqlite-jdbc jar, you need to include this jar in your classpath.
You can use gradle to download jar from maven repository. Find the gardle depedency

compile 'org.xerial:sqlite-jdbc:3.8.11'

Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us