murpha Posted February 16, 2019 Share Posted February 16, 2019 My server is bit.heliohost.org. I just got verified java on my johnny server and now I am using something I have tested on my localhost computer, and which works. I haveClass.forName("com.mysql.jdbc.Driver");and<%@page import="java.sql.*" %>.I have the error:java.lang.ClassNotFoundException: com.mysql.jdbc.Driver.How do I solve this problem? I cannot access WEB_INF in my ftp client either, so I cannot add my mysql/J connector in the library either. Quote Link to comment Share on other sites More sharing options...
Krydos Posted February 16, 2019 Share Posted February 16, 2019 You need to put WEB-INF/lib/mysql-connector-java-8.0.15.jar or whichever version of the mysql-connector you're using. Quote Link to comment Share on other sites More sharing options...
murpha Posted February 17, 2019 Author Share Posted February 17, 2019 I cannot access WEB_INF:ftp> cd WEB_INF550 Can't change directory to WEB_INF: No such file or directory Quote Link to comment Share on other sites More sharing options...
Krydos Posted February 17, 2019 Share Posted February 17, 2019 Create the directory. Quote Link to comment Share on other sites More sharing options...
murpha Posted February 17, 2019 Author Share Posted February 17, 2019 I have, then, it is the same error again, nothing changed. Quote Link to comment Share on other sites More sharing options...
Krydos Posted February 17, 2019 Share Posted February 17, 2019 Did you place the .jar? It won't start working until tomcat restarts. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.