Hi
I'm pretty new at the GWT, but have been using java for a few years.
For whatever reason, I simply CANNOT get around this dumb error.
Every example of using the mysql jdbc connector uses the Class.forName
("com.mysql.jdbc.Driver") in it, but whenever I try to run this, I
always get this:

The method forName(String) is undefined for the type Class

This happens on Linux, Windows, in Netscape, and Eclipse.

WHAT am I missing?

Here's the latest sample I tried, which I got online.

public void connecter() {
    System.out.println("MySQL Connect Example.");
    Connection conn = null;
    String url = "jdbc:mysql://localhost:3306/";
    String dbName = "jdbctutorial";
    String driver = "com.mysql.jdbc.Driver";
    String userName = "root";
    String password = "root";
    try {
      Class.forName(driver).newInstance();
      conn = DriverManager.getConnection(url
+dbName,userName,password);
      System.out.println("Connected to the database");
      conn.close();
      System.out.println("Disconnected from database");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }

????????????????????????????????

At ONE point the other day I was able to establish a connection to
mysql.... running it on my linux machine, from eclipse.  But now I've
somehow broken that magical configuration and can't get it back.

Any help would be greatly appreciated.
Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to