Home  >  Forum  >  Database
Post New Query

java.lang.ClassNotFoundException: org.sqlite.JDBC

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)

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

©2022 concretepage.com | Privacy Policy | Contact Us