This content has been marked as final. Show 2 replies
Because you haven't loaded the Driver yet, either with Class.forName or DriverManager.registerDriver.
Also, I hope your user is really "user" and your password really "pass", because if "user" and "pass" are variables names that url won't work anyway. And, in anycase, you're better off using the getConnection(url, user, pass) form of getConnection anyway.