I am trying to get my java application to connect to a firebird embedded database and so far i keep getting errors currently i am getting this error
org.firebirdsql.gds.impl.j
ni.Interna
lError: FirebirdApiBinding::Initia
lize - Could not find or load the GDS32.DLL
at org.firebirdsql.gds.impl.j
ni.JniGDSI
mpl.native
Initilize(
Native Method)
at org.firebirdsql.gds.impl.j
ni.JniGDSI
mpl.attemp
tToLoadACl
ientLibrar
yFromList(
JniGDSImpl
.java:85)
at org.firebirdsql.gds.impl.j
ni.Embedde
dGDSImpl.<
init>(Embe
ddedGDSImp
l.java:31)
at org.firebirdsql.gds.impl.j
ni.Embedde
dGDSImpl.<
init>(Embe
ddedGDSImp
l.java:21)
at org.firebirdsql.gds.impl.j
ni.Embedde
dGDSFactor
yPlugin.ge
tGDS(Embed
dedGDSFact
oryPlugin.
java:40)
at org.firebirdsql.gds.impl.G
DSFactory.
getGDSForT
ype(GDSFac
tory.java:
219)
In order to get to this point i dropped both the fbembed.dll and the gds32.dll(which is actually just the renamed fbembed.dll) into the c:\windows\system32 folder.
I then tried dropping all kinds of other files including the intl folder from the firebird embedded download and the firebird.conf and firebird.msg
I also tried putting them directly in my lib folder it still cannot find the the gds32.dll.
Any ideas on what i am doing wrong or where the gds32.dll should go?
oh yeah the connection url i am using in my project is this
try{
Connection con = null;
Driver d = (Driver)Class.forName( "org.firebirdsql.jdbc.FBDr
iver" ).newInstance();
con = DriverManager.getConnectio
n("jdbc:fi
rebirdsql:
embedded:C
:\\Databas
e\\userdb.
fdb", "sysdba", "masterkey");
System.out.println("sqlUti
lities.get
ResultSet:
Database connection established");
Statement stmt = con.createStatement(Result
Set.TYPE_S
CROLL_SENS
ITIVE, ResultSet.CONCUR_UPDATABLE
);
}catch (java.sql.SQLException e){
System.out.println("except
ion: Message-" + e.getMessage() +" ToString-" + e.toString());
e.printStackTrace();
}
the error occurs after the DriverManager.getConnectio
n
and i should add also i have firebird 2.0 superserver installed and running on my system possibly is this causing a conflict?