title: Java Desktop app with Ms Access
body: <p>My Db connection is error "<code>class not found exception</code>!". 
  I want to show in java jTable with query result..</p>
  
  <pre><code>static Connection databaseConnection()throws ClassNotFoundException{
          Connection con=null;
          File file=new File("PlayDb/PlayIS.mdb");
          try{
              Class.forName("sun.jdbc.odbc.jdbcodbcDriver");
              con =DriverManager.getConnection("jdbc:odbc:Driver="+"{Microsoft Access Driver(*.mdb,*.accdb)};DBQ="+file.getAbsoluteFile());
              System.out.print("Success con!!");
          }
          catch(Exception e){
              System.out.print("connection fail!!");
          e.printStackTrace();
          }
          return con;
     }
  </code></pre>