title: Error "cannot find symbol" for Class Connection and Class Statement
body: <p>I'm using GlassFish, Maven and Commmand Line to host my Project.</p>
  
  <p>I created a JDBC database in Glassfish and now I'm trying to create a Table in it with this Java-EE file:</p>
  
  <pre><code>package edu.ndnu.arivera;
  
  import javax.sql.*;
  import javax.annotation.Resource;
  
  public class dbCreate{
      @Resource(name="jdbc/arivera") DataSource ds;
  
      public void connectAndQueryDB(String username, String password)
      {
          Connection con = ds.getConnection();
          Statement stmt = con.createStatement();
          stmt.executeQuery("CREATE TABLE Voter (firstName varchar(30),lastName varchar(30), address varchar(30), city varchar(30), state varchar(30), zip varchar(30), phone varchar(30), affil varchar(30))");
          con.close();
      }
  }
  </code></pre>
  
  <p>However I get this error:</p>
  
  <pre><code>[ERROR] symbol:   class Connection
  [ERROR] location: class edu.ndnu.arivera.dbCreate
  [ERROR] /home/student/ContestedCounty/src/main/java/edu/ndnu/arivera/dbCreate.java:[12,1] cannot find symbol
  [ERROR] symbol:   class Statement
  [ERROR] location: class edu.ndnu.arivera.dbCreate
  </code></pre>
  
  <p>I'm not sure what I'm doing wrong.</p>