muss ich was installieren, wenn ich dieses programm ausfüren will oder hab ich da einfach irgendwo einen fehler drin?
Alles anzeigen
hier kommt jedesmal eine classnotfoundexception, wenn ich das ausführe.
gruss dominik
Java-Quellcode
- import java.sql.*;
- class CDatabase {
- public static void main(String args[]) {
- Connection connection=null;
- try {
- Class.forName("org.gjt.mm.mysql.Driver");
- String url="jbdc:mysql://localhost/chat";
- connection=DriverManager.getConnection(url,"root","tsts");
- } catch (ClassNotFoundException e) {
- System.out.println("could not find database driver");
- } catch (SQLException e) {
- System.out.println("could not connect to the database");
- }
- }
- }
hier kommt jedesmal eine classnotfoundexception, wenn ich das ausführe.
gruss dominik
Gruss Dominik.
