title: Unreported exception java.sql.SQLException; must be caught or declared to be thrown?
body: <p>I got this error while trying to compile the below code. I would like to know what is I have done wrong.</p>
  
  <pre>
  unreported exception java.sql.SQLException; must be caught or declared to be thrown
   Class.forName(myDriver);
  
                 ^
  </pre>
  
  <pre><code>private void setupInfo() {
  
      Driver driver = new org.gjt.mm.mysql.Driver();
      String url = "jdbc:mysql://localhost:3306/test";
      String username = "root";
      String password = "123456";
  
      String problemFeatureSpecTableName = "ProblemFeatureSpec";
      String solutionFeatureSpectTableName = "SolutionFeatureSpec";
      String classTableName = "Class";
      String extraDataTableName = "ExtraData";
      String casebaseTablename = "CaseBase";
      String problemTableName = "Problem";
      String solutionTableName = "Solution";
      String inactiveContextsTableName = "InactiveContext";
      String constantsTableName = "Constants";
      dbInfo = new DBInfo(new JDBCDriverInfo(driverName, url, username, password),constantsTableName);
      problemSpecInfo = new FeatureSpecRDBInfo(problemFeatureSpecTableName, classTableName, extraDataTableName);
      solutionSpecInfo = new FeatureSpecRDBInfo(solutionFeatureSpectTableName, classTableName, extraDataTableName);
      rdbCasebaseInfo = new RDBCaseBaseInfo(casebaseTablename, solutionTableName, problemTableName, inactiveContextsTableName);
  }
  </code></pre>