title: Connection variable cannot be resolved
body: <pre><code>public class GestorBase{
  
   public static void main(String[] args){
    try
    {
     Class.forName("org.sqlite.JDBC");
    }
    catch (ClassNotFoundException e) {
     System.out.println("Unable to load driver class");
     // TODO: handle exception
    }
    try {
     Connection con = DriverManager.getConnection("jdbc:sqlite:db/Freepark.sqlite");
    } catch (SQLException e) {
     // TODO Auto-generated catch block
     System.out.println("error al buscar la base de datos");
    }
  
    Statement sentencia = con.createStatement();
  
  
   }}
  </code></pre>
  
  <p>Eclipse says:</p>
  
  <blockquote>
    <p>"con" variable cannot be resolved to a type. </p>
  </blockquote>
  
  <p>Why?</p>