Hi all,

Any idea on why I get the following error and how can I fix it?
The applet work fine when I run it from JBuilder but when I run the HTML
file I get this error:

java.sql.SQLException: No suitable driver

Can I get some help on this one?

Thanks,

Eric

// Set up database connection
      try {
         url = "jdbc:odbc:cpass";
         Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
         connection = DriverManager.getConnection(url, "malguye", "");
      }
      catch ( ClassNotFoundException cnfex ) {
         cnfex.printStackTrace();
         dlgInfo = new DlgPopup(mainFrame,"Class Error", "Connection
Unsuccessful! ClassNotFoundException");
         dlgInfo.show();
         validConnection = false;
      }
      catch ( SQLException sqlex ) {
         sqlex.printStackTrace();
         dlgInfo = new DlgPopup(mainFrame,"SQL Error", sqlex.toString());
         dlgInfo.show();
         validConnection = false;
      }
      catch ( Exception ex ) {
         ex.printStackTrace();
         dlgInfo = new DlgPopup(mainFrame,"Error", "Connection Unsuccessful!
Exception Found");
         dlgInfo.show();
         validConnection = false;
      }

                             \\\|///
                           \\  ~ ~  //
                            (  @ @  )
--------------------------oOOo-(_)-oOOo--------------------------------

     _/_/_/_/  _/_/_/_/  _/_/_/_/_/  _/_/_/_/   Eric Malguy
    _/        _/    _/      _/      _/         Software Engineer
   _/_/_/_/  _/_/_/_/      _/      _/        Advanced Systems Group
        _/  _/    _/      _/      _/        Alexandria, VA(703)684-6244
 _/_/_/_/  _/    _/  _/_/_/_/_/  _/_/_/_/  [EMAIL PROTECTED]
-----------------------------------Oooo.-------------------------------
                          .oooO     (   )
                          (   )      ) /
                           \ (      (_/
                            \_)

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to