JDBC — java.lang.NoClassDefFoundError: Could not initialize class com.mysql.jdbc.Connection
I have the following code that's trying to establish a connection to a remote database. It's throwing an exception, and I can't figure out why. import java.util.List; import java.util.ArrayList; import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; import java.sql.ResultSet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import com.model.Bulletin; Connection connection = getConnection(); Statement statement = connection.createStatement(); private Connection getConnection() { Connection