java.lang.ClassNotFoundException: org.sqlite.JDBC error in Sample.java program from xerial
Thanks to user phew for the help/ideas.
I missed the obvious command line instructions on Xerial's site for the Sample program. To get the program to run from the command line, I had to copy the JAR file into the same folder as the .java program. Then run the following command:
java -classpath ".:sqlite-jdbc-(VERSION).jar" Sample
All the above solutions works well, when you are dealing with the desktop JAVA Application. In the case of WebAPP Application, following above solutions will not work. Actually it is the issue with your App server, that is you needed to add sqlite-jar under your WEB-INF/lib and then only you will be able to run your webapp successfully.
For doing so you can follow below steps:
Go to:
Project-> Properties-> Deployment Assembly-> Add-> Archives From File System -> Next -> Add
Navigate to the folder where you have your sqlite-jar, select it and hit OK.
Click Finish. OK.
Done, you should be able to run your app now.
Thanks