title: i am trying to connect my jdbc program oracle database 10g and using window 8
body: <p>my code is</p>
  
  <pre><code>import java.sql.*;
  
  public class SelectTest{
      public static void main(String arr[]) {
          try {
              class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              Connection con=DriverManager.getConnection("jdbc:odbc:myDb","system","oracle");
              Statement stmt=con.createStatement();
              ResultSet rset=stmt.executeQuery("select * from emp");
  
              while(rset.next()) {
                  System.out.print(rset.getInt(1)+"\t"+rset.getString(2)+"\t"+
                  rset.getString(3)+"\t"+rset.getInt(4));
              }//while loop
              con.close();
          }//try 
          catch(Exception ex) {
              System.out.print(ex);
          }//catch
      }//main 
  }//class 
  </code></pre>
  
  <p>And i set classpath of the oracle DB in system environment  as</p>
  
  <pre><code>C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar;.
  </code></pre>
  
  <p>And i set path for jre in user variables as</p>
  
  <pre><code>C:\Program Files\Java\jdk1.7.0_17\bin;.;
  </code></pre>
  
  <p>i am not getting why my program is giving the error:</p>
  
  <pre><code>Error: this program is not recognised as internal or external command.
  </code></pre>