Re: Connector MXJ Strange Error Question?

Eric Herman <[email protected]> Mon, 31 Mar 2008 12:01:26 -0500
Newsgroups gmane.comp.db.mysql.java
Message-ID <[email protected]>
Hello Deepak,

Thank you for your interest in Connector/MXJ.

Deepak Shrestha wrote:

> Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
> com.mysql.jdbc.Driver
>         at com.mysql.management.MysqldResource.canConnectToServer(MysqldResource.java:236)
>         at com.mysql.management.MysqldResource.start(MysqldResource.java:221)
>         at com.mysql.management.MysqldResource.start(MysqldResource.java:166)


As, MC said, this looks like the connector-j jar is not in the CLASSPATH.

Connector/MXJ uses Connector/J to connect to the deployed MySQL database 
and initialize the user and password.

After adding the Connector/J jar file to the CLASSPATH, I recommend 
starting fresh with a clean directory, and double-checking that there 
are no other mysqlds running, simply to remove ambiguity.


> After this my Shutdown Databse function doesn't work and I have to
> manually end the Mysql process form Task Manager (I am using windows).

If you continue to have difficulties, would you be willing to post 
example code which we could run to demonstrate the failure, rather than 
simply including code snips?

Is there any output when the shutdown isn't working?

Also, what versions of operating system and Java?


Cheers,
  - Eric

-- 
Eric Herman, Software Developer
MySQL AB, www.mysql.com
VoIP Ext: 6594   US: +1 408 213 6540  Europe: +46 18 174 400
Mobile: +31 62 07 19 662   Netherlands: 062 07 19 662
Are you MySQL certified?  www.mysql.com/certification

-- 
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe:    http://lists.mysql.com/[email protected]