Quando tento implementar minha aplicação esta dando o erro:
Erros: com.mysql.jdbc.Driver
Estou implementando assim:
public static Connection getConnection() throws DatabaseException {
try {
Class.forName("com.mysql.jdbc.Driver");
return DriverManager.getConnection("jdbc:mysql://mysql.hostlocation.com.br:3306/nomeBanco","login","senha");
}catch (ClassNotFoundException e) {
throw new DatabaseException(DatabaseException.DRIVER_INVALIDO, e);
}catch (SQLException e) {
throw new DatabaseException(DatabaseException.ERRO_CONEXAO, e);
}
}