Loading ...
Sorry, an error occurred while loading the content.

Java-Jaybird - Configuration Step By Step

Expand Messages
  • srj.suraj
    Hai Everybody, Am new to java enviornment,Can anyone specdify steps to configure Jaybird. Am using JSP and a Java Class File. From The Java Class File am
    Message 1 of 2 , May 5, 2011
    • 0 Attachment
      Hai Everybody,

      Am new to java enviornment,Can anyone specdify steps to configure Jaybird.

      Am using JSP and a Java Class File.
      From The Java Class File am trying to create a Jaybird Connection.
      DriverManager.getconnection - gives an error message - No Suitable Driver.

      Code as Follows

      Class.forName("org.firebirdsql.jdbc.FBDriver");
      connection = DriverManager.getConnection(
      "jdbc:firebirdsql://localhost:3050/C:/test.gdb", "sysdba", "masterkey");

      Configuration
      -----------------
      Windows XP
      Firebird_2_1
      jdk1.5.0_22
      jaybird-2.1.6.jar
      Apache Tomcat 6.0

      Thanks in advance to all experts..
    • Mark Rotteveel
      ... If that is your exact code, it should work. Please make sure you do not ignore exceptions thrown by Class.forName, as those could indicate that the driver
      Message 2 of 2 , May 6, 2011
      • 0 Attachment
        > Hai Everybody,
        >
        > Am new to java enviornment,Can anyone specdify steps to configure
        > Jaybird.
        >
        > Am using JSP and a Java Class File.
        > From The Java Class File am trying to create a Jaybird Connection.
        > DriverManager.getconnection - gives an error message - No Suitable Driver.
        >
        > Code as Follows
        >
        > Class.forName("org.firebirdsql.jdbc.FBDriver");
        > connection = DriverManager.getConnection(
        > "jdbc:firebirdsql://localhost:3050/C:/test.gdb",
        > "sysdba", "masterkey");

        If that is your exact code, it should work. Please make sure you do not ignore exceptions thrown by Class.forName, as those could indicate that the driver is not on your classpath.

        Mark
        --
        NEU: FreePhone - kostenlos mobil telefonieren und surfen!
        Jetzt informieren: http://www.gmx.net/de/go/freephone
      Your message has been successfully submitted and would be delivered to recipients shortly.