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
>
>
>
>