techoverload.net
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver java error
After executing below code i get java.lang.ClassNotFoundException: com.mysql.jdbc.Driver error.How do i go about solving this mysql server connection error with java. Code import java.sql.DriverManager; import java.sql.Connection; import java.sql.ResultSet; import java.sql.Statement; import javax.swing.JOptionPane; public class DbConnection { public Connection con; DbConnection() { try { Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection("jdbc:mysql://localhost:3306/pointofsale","root",""); Statement…