Re: Connector MXJ Strange Error Question?

Martin MC Brown <[email protected]> Mon, 31 Mar 2008 15:14:15 +0100
Newsgroups gmane.comp.db.mysql.java
Message-ID <[email protected]>
On 31 Mar 2008, at 12:48, Deepak Shrestha wrote:
> Hi,
>
> I am new to Connector/MXJ. Recently I have downloaded "Connector/MXJ
> 5.0.9" and "Connetor/J 5.1.6". I am trying to build/test a simple
> system tray application from which I can start or shutdown the mysql
> database. I am following MySQL 5.1 documentation on MXJ and so far I
> was able to run the "ConnectorMXJObjectTestExample.java".
> ...
> 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).
>
> My Question is:
>
> 1) What is this error? Is this Connector/MXJ Specific Error or  
> something else?

The NoClassDefFoundError means that Java couldn't find a required  
class, in this case the MySQL JDBC driver. You need to make sure that  
the Connector/J driver is in your classpath

> 2) What is the probable cause of this error? why I am getting this
> error while the example that comes with Connector/MXJ is running
> perfectly?


See above - you need to have both the C/J and C/MXJ components in your  
classpath.

MC

--
Martin MC Brown, Technical Writer
MySQL AB, http://www.mysql.com
Skype: mcmcslp



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