Código
Me devuelve el siguiente error:
<%@ page import="java.io.*,java.util.*,java.net.*,java.sql.*" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <% Connection canal = null; Statement instruccion=null; ResultSet tabla= null; String conexion = ("jdbc:mysql://localhost/opcodes?user='noteinteresa'&password='noteinteresa'"); //Abrir el enlace try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); canal = DriverManager.getConnection(conexion); instruccion = canal.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE); } catch(ClassNotFoundException e){ out.println(e);} catch(SQLException e){ out.println(e);} try{ tabla = instruccion.executeQuery("SELECT * FROM dictionary"); out.println("<table border=1>"); while(tabla.next()){ } out.println("</table>"); } catch(Exception e){ out.println(e);} %> <html>
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver java.lang.NullPointerException
He añadido al projecto en netbeans dicha libreria y nada :s
Saludos