java.lang.ClassNotFoundException: org.sqlite.JDBC error in Sample.java program from xerial

后端 未结 6 1426
无人及你
无人及你 2020-12-04 01:53

I am trying to get Xerial\'s Sample class to work in Eclipse with sqlite, but I keep getting the error \"ClassNotFoundException: org.sqlite.JDBC\"

I downloaded the s

6条回答
  •  生来不讨喜
    2020-12-04 02:17

    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

提交回复
热议问题