![]() ![]() The example below will show the exception. If not, the JAR should be added to the classpath in Java and the application should be recompiled. Check whether this JAR is present in the application classpath. ![]() For example, in the case of, the JAR file that contains it is mysql-connector-java.jar. If the MySQL JDBC driver jar is missing or not available in the java class path, the exception : will be thrown. Find out which JAR file contains the problematic Java class. - I d/l the mysql gzip file - moved the file to /opt/atlassian/jira/lib/ - ran the tar command - it created a directory: mysql-connector-java-5.1. 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. So I must fix it for SQL developer v4.1. Due to some reasons I don't want to use SQL Developer v18.2 yet. If the MySQL JDBC driver is not available, the exception : will be thrown by the java application. Verify your Driver location' So I guess SQL Developer missed a newer MySQL java jdbc driver which matches the (meanwhile installed newer Java or MySQL). 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. Archives
June 2023
Categories |