Jump to content

[SOLVED] MySql 4.0 and Java 1.3


eoinKillian

Recommended Posts

Hi, maybe someone can help me on this one: I've got a Java program which should be extended to access a MySql 4.0 database. Unfortunately I'm stuck with Java 1.3 for the time being. My problem is, when I try to get a connection I get an Exception (NoClassDefFoundException or womething similar) because the class Savepoint cannot be loaded. Does anyone know of this problem or know which is the right driver to use. I have tried several JConnectors but they all had the same effect.

 

Thanks in advance for any help

 

Eoin

Link to comment
https://forums.phpfreaks.com/topic/51330-solved-mysql-40-and-java-13/
Share on other sites

OK, I seem to have the answer now myself, in case anyone's interested. I just have to turn off the class verification by starting the java runtime with -Xverify:none. Otherwise the class verifier tries to load java.sql.Savepoint even though it is not accessed by the driver because I'm not using savepoint functionality.

 

Hope this is of use to somebody.

 

Eoin

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.