NoClassDefFoundError: Could not initialize class com.mysql.jdbc.PreparedStatement
at com.mysql.jdbc.ConnectionImpl.clientPrepareStatement(ConnectionImpl.java:1445)
at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4291)
at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4190)
at sql.SqlServerRecord.prepareStatement(SqlServerRecord.java:228)
On Tue, Jan 12, 2010 at 3:32 PM, Alan Ezust
<alan.ezust@gmail.com> wrote:
It seems that the version of mysql-java packaged in debian squeeze does not support prepared statements.
I get a "class not found" error.
I downgraded to mysql-connector-java-5.0.8-bin.jar and prepared queries work.
Apparently, someone else who is using ubuntu + mysql-java-connector 5.1.6 also says he can do prepared queries.