I can\'t register Mysql JDBC driver in my desktop APP
I download mysql-connector-java-5.1.16.zip
Unzip mysql-connector-java-5.1.16-bin.jar a
In your lib directory,
Also, if you are running JDBC 4.0 compatible driver you no longer need to automatically load your driver. According to JDBC 4.0 specification, section 3.1 under Automatic loading of java.sql.Driver says
DriverManager.getConnectionhas been modified to utilize the Java SE Service Provider mechanism to automatically load JDBC Drivers. This removes the need to invokeClass.forName.