Subject | Re: connect would work better |
---|---|
Author | Jean Noël Martin |
Post date | 2010-10-23T12:58:16Z |
--- In Firebird-Java@yahoogroups.com, Mark Rotteveel <Avalanche1979@...> wrote:
If you are using Java 6, you need the
import org.firebirdsql.pool.FBConnectionPoolDataSource;
I was thinking that this information was a key. However, even following it it changed nothing i have always the folloing trow e= following the GDSType null is unknown.
>I use the JDK 1.7, I can go the JDK 1.6
> On 22-10-2010 18:13, Jean Noël Martin wrote:
> > I thank you for the quick answer you provided
> >
> > First of all I use jaybird 2.1.6 I Dowloaded the source and the jar
>
> Which variant, JDK_1.4 or JDK_1.6?
If you are using Java 6, you need the
> JDK_1.6 variant. You only need the jar, preferably the??? NetBeans claim for defining the following import:
> jaybird-full-2.1.6.jar; you should never need the sources if you are just using the driver.
import org.firebirdsql.pool.FBConnectionPoolDataSource;
>OK, I followed the following steps Tools, Libraries and NewLibrary and Jaibird-2.1.6JDK81.6 pointing on the root directory of the distribution.
> > Second,as far as I understand the configuration Data I beleive that it's a problem of initializion of Jaybird. I noticed other not loaded data like "FBLog4j", and probabily I have not some data in the good folder.
> > Can you provide me with the configuration data that should available at the start of the driver and the folders where I have to submit them. I use NetBeans for EDI and I have organized the Jaybird data following the class name of the files eg: firbirdsql.org.xxx. because NetBeans d'ont like the jaybird initial organization.
>
> What do you mean with this? Did you need to change the driver to get it
> work? Then you are probably doing something very wrong. NetBeans works just fine with Jaybird driver without making changes to the driver
> itself: Just add the driver to Tools, Libraries and add the Jaybird
> Library to your project.
I was thinking that this information was a key. However, even following it it changed nothing i have always the folloing trow e= following the GDSType null is unknown.
>OK I will try
> Starting the driver is as simple as (NOTE: I left out all imports,
> resource- and exception-handling)
>
> public class Example {
>
> public static void main(String[] args) {
> Class.forName("org.firebirdsql.jdbc.FBDriver");
> Connection con =
> DriverManager.getConnection("jdbc:firebirdsql://localhost/mydatabase",
> "sysdba", "masterkey");
> Statement stmt = con.createStatement();
> ResultSet rs = stmt.executeQuery("SELECT 'something' FROM
> RDB$DATABASE");
> // etcetera
> }
> }
>
> > Moreover i dont undertand what you would suggest refering http://sscce.org/
>
> Create a Short, Self Contained, Correct (Compilable), Example of your
> actual problem so that we can actually help you without guessing.
> http://sscce.org describes how to create one.
>
> --
> Mark Rotteveel
>