Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 934819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:03:37+00:00 2026-05-15T21:03:37+00:00

I am try to connect to mysql database through a RCP project. I downloaded

  • 0

I am try to connect to mysql database through a RCP project. I downloaded the Mysql Jconnect file. Extracted to a folder. Set the classpath variable as mentioned in the document. Still I am not able to connect to Mysql.
I am getting this error

SQLException: No suitable driver found for jdbc:mysql://localhost:3306/test
SQLState: 08001
VendorError: 0

I then tried add mysql-connect jar file as external jar file in the project, still no luck. Tried adding it as a user library, nothing happened.

Finally I created a “plugin project from existing jar file” option and used the mysql-connect as the jar file. Then in my RCP project I added this plugin as dependancy plugin, yet same result.

I am absolutely sure of the code, the error is in the classpath. How do I resolve it.

My configs are :

OS: Ubuntu 10.04

Mysql version: 5.2.1

Eclipse : 3.5

I tried putting the file in /usr/bin directory, that didn’t work either…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:03:38+00:00Added an answer on May 15, 2026 at 9:03 pm

    Not a complete answer, but this thread does mention:

    After rechecking everything I found that mysql configuration on the second computer was not to listen for network connections, after fixing that, (almost) all started to work fine

    P.S. but anyways, reading that there is no suitable driver it is hard to guess, that the driver is found but failed to connect 🙂

    So maybe this is not a path or classpath issue, but a mysql configuration issue.


    Actually the OP confirms in the comment that it was a classpath issue:

    This thing finally worked. I copied the mysql-connect jar file into the project folder and added it to the runtime classpath of plugin.xml file.
    The important thing here was I had to just enter the file name and not the absolute path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got mysql database in the phpmyadmin, and i try to connect to the
When I try to connect to a remote mysql database I receive an error
Im having some trouble with an oracle database. Every time i try to connect,
try to set host in dsn of pdo like this: <?php /* Connect to
How to access the another system mysql database through java program?Am using the following
http://motionsharing.com/site/download/acefad55f1e81e456d71a7448b278915 Cannot connect to MySQl database from Eclipse DataSource Explorer. I tune appropriate driver
I am having problem accessing my database, when I try to run mysql -h
I'm trying parse an xml file and insert it into an mysql database. The
I've created a web service to connect my android device to a mysql database.
I am trying to connect to MySQL database over a network. I have installed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.