![]() I also tested to make sure that no SecurityManager object had been installed. I have installed the mysql-connector-java-3.1.11-bin.jar file in the “jre/lib/ext” directory to make sure the CLASSPATH is not an issue. However I can do a FindClass(“com/mysql/jdbc/Driver”) and locate the MySQL driver without any issue from JNI and instantiate a new object from it. I found that workarea from a document on, but that work around wouldn't work for getConnection() because the required method was private ![]() ![]() The standard forName(String Name) method returns the following error Įxception in thread "main" : com/mysql/jdbc/DriverĪt 0(Native Method)Īt (Class.java:141) The first thing you will notice in my ‘C’ code example is that I have to call the forName(String name, boolean initialize, ClassLoader loader) method to register the driver. I can not get the MySQL JDBC Driver to load from JNI.
0 Comments
Leave a Reply. |