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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.