Subject | Firebird - JayBird error - help please |
---|---|
Author | George Smith |
Post date | 2002-11-01T21:22:37Z |
I am trying to get JayBird to connect to the Firebird database and am
getting
following error. I have double checked the paths and they are correct. Will
anyone help.
thanks.
..code snippet
Driver driver = (Driver)
Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();
DriverManager.registerDriver(driver);
System.out.println("After DriverManager.registerDriver(driver)");
String url =
"jdbc:firebirdsql:127.0.0.1/3050:D:\\firebird\\examples\\Employee.gbd";
System.out.println("Before Connection");
System.out.println(url);
Connection conn = DriverManager.getConnection(url,"sysdba","masterkey");
..code snippet end
running
D:\erik\firebird>java -classpath
"build;lib\firebirdsql.jar;lib\mini-concurrent.
jar;lib\mini-j2ee.jar;lib\log4j-core.jar;jaas.jar" firebird.TestFirebird
After DriverManager.registerDriver(driver)
Before Connection
jdbc:firebirdsql:127.0.0.1/3050:D:\firebird\examples\Employee.gbd
Error: java.lang.Exception: Error getting connection: java.sql.SQLException:
Pro
blem getting connection: I/O error for file %.0s"CreateFile (open)"
George R Smith
getting
following error. I have double checked the paths and they are correct. Will
anyone help.
thanks.
..code snippet
Driver driver = (Driver)
Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();
DriverManager.registerDriver(driver);
System.out.println("After DriverManager.registerDriver(driver)");
String url =
"jdbc:firebirdsql:127.0.0.1/3050:D:\\firebird\\examples\\Employee.gbd";
System.out.println("Before Connection");
System.out.println(url);
Connection conn = DriverManager.getConnection(url,"sysdba","masterkey");
..code snippet end
running
D:\erik\firebird>java -classpath
"build;lib\firebirdsql.jar;lib\mini-concurrent.
jar;lib\mini-j2ee.jar;lib\log4j-core.jar;jaas.jar" firebird.TestFirebird
After DriverManager.registerDriver(driver)
Before Connection
jdbc:firebirdsql:127.0.0.1/3050:D:\firebird\examples\Employee.gbd
Error: java.lang.Exception: Error getting connection: java.sql.SQLException:
Pro
blem getting connection: I/O error for file %.0s"CreateFile (open)"
George R Smith