Subject | Embedded Firebird/Jaybird |
---|---|
Author | bruce_eric_miller |
Post date | 2003-09-15T18:32:42Z |
Is it possible to use Firebird as an embedded database with Java?
Using the Jaybird JDBC drivers? I've successfully used Firebird
embedded with Delphi and would like to do something similar with a
Java app, but am having no luck.
I'm trying:
FBManager fbManager;
try {
Class.forName("org.firebirdsql.jdbc.FBDriver");
}
catch (java.lang.ClassNotFoundException e) {
System.out.println("Firebird JCA-JDBC driver not found
in class path");
System.out.println(e.getMessage());
return;
}
try {
fbManager = new FBManager();
fbManager.start();
fbManager.createDatabase("c:\test.gdb", DB_USER,
DB_PASSWORD);
}
catch (Exception e) {
System.out.println(e.getMessage());
}
This loads the driver, but fails on the create database with
a "Unable to complete network request to host "localhost"." error.
Can anyone guide me a little?
Thanks...
Using the Jaybird JDBC drivers? I've successfully used Firebird
embedded with Delphi and would like to do something similar with a
Java app, but am having no luck.
I'm trying:
FBManager fbManager;
try {
Class.forName("org.firebirdsql.jdbc.FBDriver");
}
catch (java.lang.ClassNotFoundException e) {
System.out.println("Firebird JCA-JDBC driver not found
in class path");
System.out.println(e.getMessage());
return;
}
try {
fbManager = new FBManager();
fbManager.start();
fbManager.createDatabase("c:\test.gdb", DB_USER,
DB_PASSWORD);
}
catch (Exception e) {
System.out.println(e.getMessage());
}
This loads the driver, but fails on the create database with
a "Unable to complete network request to host "localhost"." error.
Can anyone guide me a little?
Thanks...