Problem: I trying to use Interclient 1.5 with JDK 1.2, but have problems. JDK 1.16 works fine. InterClient 1.5 (and earlier) does not appear to work with JDK 1.2 (Java 2). An example of the problem follows: This code: "Class.forName("interbase.interclient.Driver");" generates this error: java.lang.ClassFormatError: interbase/interclient/Driver (Local variable name has bad constant pool index) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:355) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74) at java.net.URLClassLoader.defineClass(URLClassLoader.java:188) at java.net.URLClassLoader.access$1(URLClassLoader.java:156) at java.net.URLClassLoader$1.run(URLClassLoader.java:137) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:131) at java.lang.ClassLoader.loadClass(ClassLoader.java:245) at java.lang.ClassLoader.loadClass(ClassLoader.java:195) at java.lang.Class.forName(Native Method) at java.lang.Class.forName(Class.java:104) at media.util.dmConnection.jbInit(dmConnection.java:15) at media.util.dmConnection.(dmConnection.java:10) at media.util.dmConnection.getDataModule(dmConnection.java:53) at media.util.dmConnection.main(dmConnection.java:59) Exception in thread "main" Solution: The information in this document applies to: InterBase Version 5.x InterClient Version 1.5 JDK 1.2 Although IC1.5 was not designed to work with JDK 1.2, we've had reports from customers that IC 1.5 works fine under Java 1.2 if byte-code verification is disabled using java -Xverify:none ... Using -Xverify:none tricks the run-time into allowing the partially implemented driver classes (interbase.interclient) to be considered instances of the extended java.sql interfaces. NOTE: this has not been tested by us and is not a supported procedure.
Last Modified: 28-JAN-02