Results 1 to 3 of 3
  1. #1
    amitabh is offline Member
    Join Date
    Apr 2010
    Posts
    51
    Rep Power
    0

    Default eclipse with mysql

    Hello every one

    i am using eclipse and mysql.
    i have successfully developed a project on eclipse with mysql on one system.

    But now when i am going to connect mysql with eclipse on another system it is not pinging and give the following error

    [
    java.lang.NoClassDefFoundError: Could not initialize class com.mysql.jdbc.ConnectionImpl
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonReg isteringDriver.java:285)
    at
    org.eclipse.datatools.connectivity.drivers.jdbc.JD BCConnection.createConnection(JDBCConnection.java: 206)
    at org.eclipse.datatools.connectivity.DriverConnectio nBase.internalCreateConnection(DriverConnectionBas e.java:104)
    at org.eclipse.datatools.connectivity.DriverConnectio nBase.open(DriverConnectionBase.java:53)
    at org.eclipse.datatools.connectivity.drivers.jdbc.JD BCConnection.open(JDBCConnection.java:72)
    at org.eclipse.datatools.enablement.internal.mysql.co nnection.JDBCMySQLConnectionFactory.createConnecti on(JDBCMySQLConnectionFactory.java:28)
    at org.eclipse.datatools.connectivity.internal.Connec tionFactoryProvider.createConnection(ConnectionFac toryProvider.java:83)
    at org.eclipse.datatools.connectivity.internal.Connec tionProfile.createConnection(ConnectionProfile.jav a:355)
    at org.eclipse.datatools.connectivity.ui.PingJob.crea teTestConnection(PingJob.java:76)
    at org.eclipse.datatools.connectivity.ui.PingJob.run( PingJob.java:59)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:55)
    ]
    thank y

  2. #2
    arun9683 is offline Member
    Join Date
    Jun 2010
    Location
    Bangalore,India
    Posts
    70
    Rep Power
    0

    Default

    you have not imported the required jar file properly..

    Just check in the project properties==>java build path

    Here you can import the required jar files...
    Arun K R,Bangalore,India
    :)

  3. #3
    amitabh is offline Member
    Join Date
    Apr 2010
    Posts
    51
    Rep Power
    0

    Default

    Quote Originally Posted by arun9683 View Post
    you have not imported the required jar file properly..

    Just check in the project properties==>java build path

    Here you can import the required jar files...
    thanks my problem have been solve.

    Thank y

Similar Threads

  1. Connector J with Eclipse and MySQL 5.0.x
    By int80 in forum Eclipse
    Replies: 11
    Last Post: 05-31-2010, 09:32 AM
  2. Connecting a MySQL DB through Eclipse
    By mitty in forum New To Java
    Replies: 3
    Last Post: 02-01-2010, 09:22 AM
  3. Replies: 15
    Last Post: 04-15-2009, 01:51 AM
  4. [SOLVED] mysql problem using eclipse
    By perplexingtrax in forum Java Servlet
    Replies: 8
    Last Post: 04-13-2009, 08:08 PM
  5. Eclipse / Mysql problem
    By jdevm in forum Eclipse
    Replies: 0
    Last Post: 10-09-2008, 01:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •