Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

604
Vistas
How do I check to see if I have JDBC installed on my system?

I how does one check to see whether or not they have JDBC connector for mySQL installed in Mac OS?

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

You need to execute Class.forName("com.mysql.jdbc.Driver") inside a try-catch block in order to confirm if the MySQL JDBC driver is in the classpath or not. If it won't be found in the classpath, ClassNotFoundException will be thrown which you can capture and show an error message as shown below:

try {
    Class.forName("com.mysql.jdbc.Driver");
} catch (ClassNotFoundException ex) {
    System.out.println("Error: MySQL JDBC driver not found.");
}
over 4 years ago · Santiago Trujillo Denunciar

0

You can try to instantiate the mysql jdbc driver class":

try {
        // The newInstance() call is a work around for some
        // broken Java implementations
        Class.forName("com.mysql.jdbc.Driver").newInstance();
    } catch (Exception ex) {
            // handle the error
    }
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda