Subject Re: [Firebird-Java] Re: connect would work better
Author Mark Rotteveel
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
jaybird-full-2.1.6.jar; you should never need the sources if you are
just using the driver.

> 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.

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