pb aved jdbc et jconnectore
salut..
j'ai un pb avec ma connexion vers mon bd...
j'utilise une applet pour me connecter a ma bd ,j'utilise un jconnectore voice le code :
Code:
1 2 3 4 5 6 7 8 9
| Connection connec;
String chaineconnexion = "jdbc:mysql://localhost:3306/java";
String login = "root";
String pass = "root";
public Connection getConnec() throws Throwable {
Class.forName("com.mysql.jdbc.Driver");
return DriverManager.getConnection(chaineconnexion, login, pass);
} |
qd je compile j'obtiens ce message
Code:
erreur :java.lang.classnotfoundexception:com.mysql.jdbc.driver
j'ai mis le fichier .jar ds le bon repertoire mais ca ne donne absolument rien, alors que ca fonctionnait ds mon ancienne configuration avant le changement du pc :cry: