Subject Re: [Firebird-Java] Re: JayBird
Author Paul MAJGIER
Roman,



A sample of Java code :

private MiniSql(){
try{
Class.forName("org.firebirdsql.jdbc.FBDriver");
} catch(java.lang.ClassNotFoundException e){
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
}

String dbUrl =
"jdbc:firebirdsql://192.168.0.1:3050/usr/databases/fhr.gdb";
String dbUser= "sysdba";
String dbPass= "masterkey";
try{
connection = DriverManager.getConnection(dbUrl, dbUser ,dbPass );
} catch(SQLException ex){
System.err.println("SQLException: "+ ex.getMessage());
}
}




It run with :

java -classpath . Visualsql.java
(launched in current directory)





Stack trace :

ClassNotFoundException: org.firebirdsql.jdbc.FBDriver
SQLException: No suitable driver



many thanks,

Paul.