Exception in thread "main" : Īt (URLClassLoader.java:381)Īt (ClassLoader.java:424)Īt $AppClassLoader.loadClass(Launcher.java:331)Īt (ClassLoader.java:357)Īt 0(Native Method)Īt (Class.java:264)Īt (DBConnection.java:8) The driver class is not found in the java class path. The stack trace of the exception : will be as below. If the MySQL JDBC driver is not available, the exception : will be thrown by the java application. The MySQL JDBC driver gathers data from the MySQL database and sends it back to the Java application. The Mysql database executes the query and returns the data. The mysql driver sends the database query to the database from Java. The MySQL JDBC driver is used to connect a Java application to a MySQL database. If the MySQL JDBC driver jar is not available, or if the jar is missing in the java class path, the exception : will be thrown. The Class.forName() fails to loads the mysql driver class that is not available in the class path. The : exception occurs if the MySQL JDBC driver class can not found in the java class path.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |