Re: forName finds Driver but getConnection doesn't

From: Fernando Nasser <fnasser(at)redhat(dot)com>
To: Dennis King <d_r_king(at)yahoo(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: forName finds Driver but getConnection doesn't
Date: 2002-11-26 15:37:22
Message-ID: 3DE39532.6060401@redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Denis,

Your session is set up with the GNU gcj as the compiler/jvm.
If you try 'which java" you will probably get /usr/bin/java,
which is _not_ the SDK/JRE one.

You must set your JDBC_HOME env variable, maybe your CLASSPATH if you do
not copy your driver there, but if you have installed the GNU gcj
program you must also make sure the SKD (or JRE) bin dir is earlier in
your path so that 'which java" points to the right thing.

I use RHDB (many versions) and the JDBC driver with all variants of JREs
every day, in machines with several different versions of the RHL OS,
without any problems so far.

Best regards,
Fernando

Dennis King wrote:

> java.sql.SQLException.SQLException(java.lang.String,
> java.lang.String, int) (/usr/lib/libgcj.so.3)

^^^^^ (GNU gcj being used)

--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser(at)redhat(dot)com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Fernando Nasser 2002-11-26 15:44:18 Re: Redhat 8 default database warning: JDBC problems (CLARIFICATION)
Previous Message Barry Lind 2002-11-25 17:06:15 Re: [JDBC] Difference in the actual and extracted values of timestamp