Re: forName finds Driver but getConnection doesn't

From: Dennis King <d_r_king(at)yahoo(dot)com>
To: Fernando Nasser <fnasser(at)redhat(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: forName finds Driver but getConnection doesn't
Date: 2002-11-27 23:59:59
Message-ID: 20021127235959.58246.qmail@web40411.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Thanks Fernando. Please note that I did NOT install GCJ. It was
either included with the 8.0 distribution or included with a Jakarta
package.

--- Fernando Nasser <fnasser(at)redhat(dot)com> wrote:
> 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
>

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Fernando Nasser 2002-11-28 06:04:43 Re: Redhat 8 default database warning: JDBC problems (CLARIFICATION)
Previous Message Dennis King 2002-11-27 23:54:11 Re: Redhat 8 default database warning: JDBC problems (CLARIFICATION)