pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
JDBC: Class.forName() Fails
2+ messages / 2 participants
[nested] [flat]

* JDBC: Class.forName() Fails
@ 2000-06-30 16:43 Guoben Li <guoben@netscape.com>
  2000-07-04 04:17 ` RE: JDBC: Class.forName() Fails Joe Shevland <shevlandj@kpi.com.au>
  0 siblings, 1 reply; 2+ messages in thread

From: Guoben Li @ 2000-06-30 16:43 UTC (permalink / raw)
  To: pgsql-interfaces; +Cc: guoben@netscape.com

Hi,

    I am new to PostgreSQL.  I have compiled PostgreSQL7.0
and its JDBC Driver, put postgresql.jar in CLASSPATH and
checked pg_hba.conf file then created a testdb with a couple
of tables.

    When I tried to run Class.forName("postgresql.Driver");
It threw a ClassNotFoundException.  There was not much
information in e.getMessage(), just "postgresql.Driver".

    Has anyone encountered this problem or does someone
know possible cause?  Please help.  I appreciate it.

    My platform is Solaris 2.6 with Java 1.1.8.  I complied
JDBC driver using `make jdbc1 jar`.

    Thanks,

Guoben Li
Netscape Communications






^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* RE: JDBC: Class.forName() Fails
  2000-06-30 16:43 JDBC: Class.forName() Fails Guoben Li <guoben@netscape.com>
@ 2000-07-04 04:17 ` Joe Shevland <shevlandj@kpi.com.au>
  0 siblings, 0 replies; 2+ messages in thread

From: Joe Shevland @ 2000-07-04 04:17 UTC (permalink / raw)
  To: Guoben Li <guoben@netscape.com>; pgsql-interfaces

Class.forName("org.postgresql.Driver")

will show you far more enjoyable results :)

The driver changed package names between 6.5 <-> 7.0.

Regards,
Joe

>-----Original Message-----
>From: pgsql-interfaces-owner@hub.org
>[mailto:pgsql-interfaces-owner@hub.org]On Behalf Of Guoben Li
>Sent: Saturday, 1 July 2000 2:44 AM
>To: pgsql-interfaces@postgresql.org
>Cc: guoben@netscape.com
>Subject: [INTERFACES] JDBC: Class.forName() Fails
>
>
>Hi,
>
>    I am new to PostgreSQL.  I have compiled PostgreSQL7.0
>and its JDBC Driver, put postgresql.jar in CLASSPATH and
>checked pg_hba.conf file then created a testdb with a couple
>of tables.
>
>    When I tried to run Class.forName("postgresql.Driver");
>It threw a ClassNotFoundException.  There was not much
>information in e.getMessage(), just "postgresql.Driver".
>
>    Has anyone encountered this problem or does someone
>know possible cause?  Please help.  I appreciate it.
>
>    My platform is Solaris 2.6 with Java 1.1.8.  I complied
>JDBC driver using `make jdbc1 jar`.
>
>    Thanks,
>
>Guoben Li
>Netscape Communications
>
>
>
>




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-07-04 04:17 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-06-30 16:43 JDBC: Class.forName() Fails Guoben Li <guoben@netscape.com>
2000-07-04 04:17 ` Joe Shevland <shevlandj@kpi.com.au>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox