Question : Installing MySQL Connector/J 5.1.13 on Windows 2003/CFMX 7

I have been using Connector/J 3.0, but recently installed Connector/J 5.1.13 and now I cannot get a data source setup in CF administrator. The Connector/J 5.1.13 was installed by placing the .jar file in: C:\CFusionMX7\wwwroot\WEB-INF\lib\   same folder I had the 3.0 version .jar file in. So after removing the 3.0 version .jar file and rebooting the server, I'm not able to setup a datasource in CF.  Did I miss anything in installation? best I remember when installing the 3.0 version all I did was download the zip file from mysql, extract the contents to a folder, copy the .jar file to the above directory, reboot and it worked. Any help in resolving this is appreciated!

Answer : Installing MySQL Connector/J 5.1.13 on Windows 2003/CFMX 7

>> java.lang.UnsupportedClassVersionError: com/mysql/jdbc/Driver
>> (Unsupported major.minor version 49.0)

Version 5.1.13 is compiled for JVM 1.5.x. By default MX7 uses JVM 1.4.x.  If you're using 1.4, try connector/j version 5.0.8.  That version worked for me.  I just unzipped the main jar and copied it to

C:\CFusionMX7\wwwroot\WEB-INF\lib\mysql-connector-java-5.0.8-bin.jar

and restarted CF.
Random Solutions  
 
programming4us programming4us