Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

603
Views
¿Cómo verifico si tengo JDBC instalado en mi sistema?

¿Cómo se verifica si tienen o no el conector JDBC para mySQL instalado en Mac OS?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Debe ejecutar Class.forName("com.mysql.jdbc.Driver") dentro de un bloque try-catch para confirmar si el controlador MySQL JDBC está en el classpath o no. Si no se encuentra en el classpath, se lanzará ClassNotFoundException , que puede capturar y mostrar un mensaje de error como se muestra a continuación:

 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 Report

0

Puede intentar crear una instancia de la clase de controlador mysql jdbc":

 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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!