Re: forName finds Driver but getConnection doesn't - Mailing list pgsql-jdbc

From Fernando Nasser
Subject Re: forName finds Driver but getConnection doesn't
Date
Msg-id 3DE39532.6060401@redhat.com
Whole thread Raw
In response to Re: forName finds Driver but getConnection doesn't  (Dennis King <d_r_king@yahoo.com>)
Responses Re: forName finds Driver but getConnection doesn't
List 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@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


pgsql-jdbc by date:

Previous
From: Barry Lind
Date:
Subject: Re: Difference in the actual and extracted values of timestamp
Next
From: Fernando Nasser
Date:
Subject: Re: Redhat 8 default database warning: JDBC problems (CLARIFICATION)