Subject Re: JBuilder and the new firebirdsql driver
Author llafranc78
> If I try to get a connection "by hand" (see following code) I get an
> exception "java.lang.NoClassDefFoundError:
> javax/resource/ResourceException" at the line "Class.forName
> ("org.firebirdsql.jdbc.FBDriver").newInstance();"
>
> This is my code:
>
> Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();
> String url = "jdbc:firebirdsql://trans//dbs/test.gdb";
> Properties dbInfo = new Properties();
> dbInfo.setProperty("user", "sysdba");
> dbInfo.setProperty("password", "masterkey");
> Driver driver = java.sql.DriverManager.getDriver(url);
> Connection connection = driver.connect
> ("jdbc:firebirdsql://trans//dbs/test.gdb", dbInfo);


Hi!!

Two things:
a) Did you include the other needed libraries?
(connector.jar,jta-spec..., and so on)
b) Someone correct me if I'm wrong, but shouldn't the connection url
look something like
"jdbc:firebirdsql:host/3050:drive:/path/to/db/database.gdb" for
Windows and "jdbc:firebirdsql:host/3050:/path/to/db/database.gdb" for
Linux?

Hope this helps :)

Ciao
Luca