Troubleshooting
Problem
Exception "No suitable driver found" when it tries to access an IBM i database
Symptom
exception "No suitable driver found" when it tries to access an IBM i database
Cause
User did not register the IBM Toolbox for Java JDBC driver with the DriverManager class
Resolving The Problem
To register the IBM Toolbox for Java JDBC driver with the DriverManager class. User need add
DriverManager.registerDriver(new com.ibm.as400.access.AS400JDBCDriver());
To your programor add
com.ibm.as400.access.AS400JDBCDriver
to the JDBC.drivers property.Class.forName(new com.ibm.as400.access.AS400JDBCDriver()) does not register the JDBC driver on some JVMs. See Sun's JDBC FAQ for more details.
Document Location
Worldwide
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Component":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]
Product Synonym
IBM i;AS400
Was this topic helpful?
Document Information
Modified date:
17 March 2020
UID
ibm11118061