From: Joe Shevland <shevlandj@kpi.com.au>
To: Guoben Li <guoben@netscape.com>
To: pgsql-interfaces@postgresql.org
Subject: RE: JDBC: Class.forName() Fails
Date: Tue, 4 Jul 2000 14:17:12 +1000
Message-ID: <MJEMLFCFPOPOFFFLIIDGOEJBCAAA.shevlandj@kpi.com.au> (raw)
In-Reply-To: <395CCE33.618D8AF7@netscape.com>
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
>
>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: shevlandj@kpi.com.au, guoben@netscape.com
Subject: RE: JDBC: Class.forName() Fails
In-Reply-To: <MJEMLFCFPOPOFFFLIIDGOEJBCAAA.shevlandj@kpi.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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