logo       
Google Custom Search
    AddThis Social Bookmark Button

suitable driver not found: msg#00319

Subject: suitable driver not found
 
The code given below gives an exception as:
a suitable driver not found. 
I am not working on a network, it is a simple stand alone PC.
 
Which jdbc driver would be suitable,I am using postgreSQL 7.3,j2sdk1.4.2 and have installed jdbc driver pg73jdbc3.jar

import java.sql.*;
class mycon{
  public static void main (String args[]) {
                                                     
                               
     try{
        Class.forName("org.postgresql.Driver");      < BR>      String url=""postgres", "");
}catch(ClassNotFoundException  e) {
  System.out.println("Exception");
  System.out.println(e.toString());
}
catch(SQLException e) {
  System.out.println("Exception");
  System.out.println(e.toString());
}
}
}


Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
<Prev in Thread] Current Thread [Next in Thread>