jQuery in Action, 2nd edition*
The moose likes JDBC and the fly likes java.lang.IncompatibleClassChangeError: Found class com.mysql.jdbc.Statement, but interface was expe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java.lang.IncompatibleClassChangeError: Found class com.mysql.jdbc.Statement, but interface was expe" Watch "java.lang.IncompatibleClassChangeError: Found class com.mysql.jdbc.Statement, but interface was expe" New topic
Author

java.lang.IncompatibleClassChangeError: Found class com.mysql.jdbc.Statement, but interface was expe

Nilesh Salpe
Greenhorn

Joined: Dec 24, 2010
Posts: 3
FYI - this error comes when you change mysql jar to new version .
I think there are major changes in statement class in new version of mysql jar .

for example it does not consider the clases

select * from abctable where isCheck = true;

here we need it like

select * from abctable where isCheck = "true";

This may cause in migration from mysql 3.2.0 to mysql 5.0.8

Please share your experiences on this forum
 
Consider Paul's rocket mass heater.
 
subject: java.lang.IncompatibleClassChangeError: Found class com.mysql.jdbc.Statement, but interface was expe