Subject Re: [Firebird-Java] Firebird connection with java..
Author Mark Rotteveel
On 7-8-2010 9:58, rakesh4u60 wrote:
> Hi,
> I have installed Firebird 2.1 on windows Xp and using firebirdsql.jdbc-2.1.6 driver to connect with java.
> Code:
> Class.forName("org.firebirdsql.jdbc.FBDriver");
> connection = DriverManager.getConnection(
> "jdbc:firebirdsql://localhost/3050:C:\\firebird\\database\\TESTONEDB.GDB","test","test");
> I am getting following error:

You are using the wrong url format; Jaybird has two distinct JDBC URL

Either use:
The old format:
jdbc:firebirdsql:<hostname>/<port>:<path to db or alias>
or the new format:
jdbc:firebirdsql://<hostname>:<port>/<path to db or alias>

The new format is more in line what other JDBC drivers use.

Mark Rotteveel