title: Postgres : No suitable Driver found for jdbc
body: <p>I know this might be a possible duplicate of question posted here. Sorry for that.Here is the code i wrote for Database connection</p>
  
  <pre><code> try{
              Class.forName("org.postgresql.Driver");     
         }
  
         catch(ClassNotFoundException e)
         {
            e.printStackTrace();
         }
  
         try{
             String URL = "jdbc:posgresql://localhost:5432/postgres";
             String USER = "postgres";
             String PASS = "postgres";
             Connection conn = DriverManager.getConnection(URL, USER, PASS);
             Statement st = conn.createStatement();
             ResultSet rs = st.executeQuery("Select * from employee");
             while(rs.next()){
                 System.out.println(rs.getString(1));
             }
  
         }
  
         catch(SQLException es){
             es.printStackTrace();
         }
  </code></pre>
  
  <p>While running this code i get the following exception :</p>
  
  <pre><code>java.sql.SQLException: No suitable driver found for jdbc:posgresql://localhost:5432/postgres
      at java.sql.DriverManager.getConnection(Unknown Source)
      at java.sql.DriverManager.getConnection(Unknown Source)
      at ManageEmployee.main(ManageEmployee.java:60)
  </code></pre>
  
  <p>I have built this project in eclipse and added the external jar of postgres</p>
  
  <p>Here is the .classpath file if it might help</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;classpath&gt;
      &lt;classpathentry kind="src" path="src"/&gt;
      &lt;classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"&gt;
          &lt;attributes&gt;
              &lt;attribute name="owner.project.facets" value="java"/&gt;
          &lt;/attributes&gt;
      &lt;/classpathentry&gt;
      &lt;classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/&gt;
      &lt;classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/&gt;
      &lt;classpathentry kind="lib" path="//10.202.6.95/kavitha_share/jars/postgresql-8.2-504.jdbc2ee.jar"/&gt;
      &lt;classpathentry kind="output" path="build/classes"/&gt;
  &lt;/classpath&gt;
  </code></pre>
  
  <p>what could be the possible reason as i have already added the jars ??</p>