• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends,




 
Ranch Hand
Posts: 162
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all

Don't put question in this fashion.

Please read this HowToAskQuestionsOnJavaRanch


Which version of mysql you are using ?

To download correct mysql connector
Check This

For Mysql 5.0 I am using mysql-connector-java-5.0.8-bin.jar

And make sure that jar file should be in classpath of application .


Thanks
 
vamshikrishna chinta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kuldeep,

I am sorry yaar for not posting in a correct manner.I am very new to this forum.I will look after the link which you have sent.

I am using Mysql 5.5 along with Jboss with eclipse.I am keeping my jar files in jboss/server/default/lib.

If i am wrong please suggest me kuldeep.
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by vamshikrishna chinta:
Hi Kuldeep,

I am sorry yaar for not posting in a correct manner.I am very new to this forum.I will look after the link which you have sent.

I am using Mysql 5.5 along with Jboss with eclipse.I am keeping my jar files in jboss/server/default/lib.

If i am wrong please suggest me kuldeep.



Dont use Hindi word, other Rancher wont understand it !

mysql-connector-java-3.0.8-stable-bin.jar and the other is mysql-connector-java-3.2.0-alpha.zip.jar.Then also i am getting the same error.I need your help very urgently.



You are not using correct version of MySQL connector . As you are using MySQL 5.x, so search for the same version of connector , Kuldeep provides you the link, download the latest version (5.x ) and replace with old !
 
vamshikrishna chinta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Do i need to import any package for mysql in java? I allready imported import java.sql.*;
import javax.sql.*;

Can you please guide me.
 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Do i need to import any package for mysql in java? I allready imported import java.sql.*; import javax.sql.*;



If you are using eclipse then IDE itself point red mark id you are not importing required classes.


Connector/J 5.1 may be sutable for your mysql .
Download that and use it.

Thanks
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic