classpath, eclipse and java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

坚强是说给别人听的谎言 提交于 2019-12-05 19:20:37

so if you are running it under built-in tomcat: you can go to your workspace folder (eclipse workspace folder), there will be folder .metadata.plugins\org.eclipse.wst.server.core\tmp0 (or tmp1,2 - depends on your environment)/wtpwebapps//WEB-INF/lib - here should be located all the jars of your app. If no - try to put it manually (but it's a worst way)

to add it to tomcat lib folder - try to find it? when you create Server in the eclipse it should ask you about installation folder of your tomcat? or it can suggest download it.. so just download/find it, and put there this jar

ps: I afraid you need to read a lot of stuff, you need to be able run your tomcat from command line for example, to better understand all the process and how all is working there.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!