Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » connection to Mysql Database
connection to Mysql Database [message #461954] Thu, 18 January 2007 16:14 Go to next message
Eclipse UserFriend
Originally posted by: badreddine49.yahoo.fr

I have create a data base in MySQL and I have an application SWT which makes the accesses to the base using a driver jdbc.¶ OK
The same codes (used in SWT application) are used by a view in RCP application, but an exception "<i>ClassNotFoundException</i> : <i>com.mysql.jdbc.Driver</i> ".
and when i debug in the Class.forName(driver);
the class :<i>BundleLoader.class</i> is called.

Thanks for your help


bader
Re: connection to Mysql Database [message #461955 is a reply to message #461954] Thu, 18 January 2007 16:19 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

How do you have the mysql.jar included in the RCP. You need to use the
MANIFEST-Editor and not directly add the .jar to the Build-Path! More
over you need to ensure that the jar is exported in the build.properties.

Tom

badr schrieb:
> I have create a data base in MySQL and I have an application SWT which makes the accesses to the base using a driver jdbc.¶ OK
> The same codes (used in SWT application) are used by a view in RCP application, but an exception "<i>ClassNotFoundException</i> : <i>com.mysql.jdbc.Driver</i> ".
> and when i debug in the Class.forName(driver);
> the class :<i>BundleLoader.class</i> is called.
>
> Thanks for your help
>
>
> bader
Re: connection to Mysql Database [message #461990 is a reply to message #461955] Sat, 20 January 2007 12:28 Go to previous message
Eclipse UserFriend
Originally posted by: badreddine49.yahoo.fr

thank you,
in the Runtime tabfolder i have added in the Classpath zone the driver mysql and
it is well. the connection from the RCP application ¶is functional.

Thank you very much

badr
Previous Topic:Handle events happend in sub composites
Next Topic:Text Problem
Goto Forum:
  


Current Time: Sat Sep 14 10:26:26 GMT 2024

Powered by FUDForum. Page generated in 0.03602 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top