When using the DBF_JDBC30.jar on Java 1.3 with a prepared statement we get the following error, due to the ParameterMetaData not being available until java 1.4.
java.lang.NoClassDefFoundError: java/sql/ParameterMetaData
at com.hxtt.sql.be.a(Unknown Source)
at com.hxtt.sql.be.prepareStatement(Unknown Source)
at com.hxtt.sql.be.prepareStatement(Unknown Source)
at com.hxtt.sql.be.prepareStatement(Unknown Source)
at ...
|
It's normal because JDK1.3 used class verifier to check whether there's necessary classes for all meothods. HXTT DBF used a trick to fool that class verifier for java.sql.SavePoint in JDK1.3 so that user needn't extra setting to disable class verifier, but we forgot java.sql.ParameterMetaData isn't in JDK1.3 too. Supported now. Please download the latest package.
In your code with the same DBF JDBC3.0 package, you can call PreparedStatement.getParameterMetaData() in JDK1.4, but you can't call that function in JDK1.3 .
|