Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

607
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda