Subject | Re: [IB-Java] Re: JBuilder and the new firebirdsql driver |
---|---|
Author | Herbert.Augustiny@sptroth.com |
Post date | 2002-01-23T16:14:36Z |
OK, I got the java.sql stuff to work, you were right, I didn't iclude those
jar files. Do I need to include all which are in the src/lib directory?
How do I get the JBuilder stuff to work? I need to have a valid
com.borland.dx.sql.dataset.Database instance which connects to the db by
using the firebirdsql driver?
Vielen Dank aus Lyss bei Bern,
Herbert
|---------+---------------------------->
| | "llafranc78" |
| | <luca.lafranchi@r|
| | ohag.ch> |
| | |
| | 23.01.2002 16:23 |
| | Please respond to|
| | IB-Java |
| | |
|---------+---------------------------->
| To: IB-Java@yahoogroups.com |
| cc: |
| Subject: [IB-Java] Re: JBuilder and the new firebirdsql driver |
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
To unsubscribe from this group, send an email to:
IB-Java-unsubscribe@egroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
jar files. Do I need to include all which are in the src/lib directory?
How do I get the JBuilder stuff to work? I need to have a valid
com.borland.dx.sql.dataset.Database instance which connects to the db by
using the firebirdsql driver?
Vielen Dank aus Lyss bei Bern,
Herbert
|---------+---------------------------->
| | "llafranc78" |
| | <luca.lafranchi@r|
| | ohag.ch> |
| | |
| | 23.01.2002 16:23 |
| | Please respond to|
| | IB-Java |
| | |
|---------+---------------------------->
>--------------------------------------------------------------------------------------------------------------------------------------------------|| |
| To: IB-Java@yahoogroups.com |
| cc: |
| Subject: [IB-Java] Re: JBuilder and the new firebirdsql driver |
>--------------------------------------------------------------------------------------------------------------------------------------------------|Hi!!
> 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);
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
To unsubscribe from this group, send an email to:
IB-Java-unsubscribe@egroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/