*
The moose likes JDBC and the fly likes Running a jar file with SQLite Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Running a jar file with SQLite" Watch "Running a jar file with SQLite" New topic
Author

Running a jar file with SQLite

Brendan Crisler
Greenhorn

Joined: Feb 07, 2007
Posts: 19
Hello,

I'm trying to run a jar file that accesses a database using the sqlite.jar file. How do I run the jar file so that I don't get the following errors:

java.lang.ClassNotFoundException: org.sqlite.JDBC
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.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at StkClient.go(StkClient.java:29)
at StkClient.main(StkClient.java:21)

Thanks,
B
 
jQuery in Action, 2nd edition
 
subject: Running a jar file with SQLite
 
Similar Threads
xxxx.jar seen as xxxx.zip on desktop and won't run
Netscape 6.2 configure with client jar files
class not found exception
security exception while executing jar
How to access DB from Applet?