Subject Can't Establish Interbase Connection
Author Sugimin
Can't Establish Interbase Connection

Hi all,

I have problem with establishing interbase connection, the InterClient driver
did successfully registered, but when trying to get a connection, The ServerTimeoutException is thrown. I've tried to run the program below on several PCs, the weird thing is that the error doesn't occur on every PC. did I miss something?

Any help are appreciated. TIA


//***** Sample Program

import java.sql.*;

public class IBConnection {

  public IBConnection() {

  public static void main(String[] args) {
    try {
      String driver = "interbase.interclient.Driver";
      String url = "jdbc:interbase://localhost/d:/ELSTO_OFFLINE.gdb";
      String username = "sysdba";
      String password = "masterkey";
      Class.forName(driver); //OK

      DriverManager.setLogWriter(new PrintWriter(System.out));
//Error here   
      Connection c = DriverManager.getConnection(url,username,password);
      System.out.println ("got connection");
      c.close ();
    } catch (Exception e) {