RE: JDBC: Class.forName() Fails

From: "Joe Shevland" <shevlandj(at)kpi(dot)com(dot)au>
To: "Guoben Li" <guoben(at)netscape(dot)com>, <pgsql-interfaces(at)postgresql(dot)org>
Subject: RE: JDBC: Class.forName() Fails
Date: 2000-07-04 04:17:12
Message-ID: MJEMLFCFPOPOFFFLIIDGOEJBCAAA.shevlandj@kpi.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)hub(dot)org
>[mailto:pgsql-interfaces-owner(at)hub(dot)org]On Behalf Of Guoben Li
>Sent: Saturday, 1 July 2000 2:44 AM
>To: pgsql-interfaces(at)postgresql(dot)org
>Cc: guoben(at)netscape(dot)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
>
>
>
>

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jerome Ledorze 2000-07-04 07:28:02 Upper characters in database names
Previous Message Byron Nikolaidis 2000-07-04 00:16:14 Re: ODBC and Visual C++