Re: Error: ClassNotFoundException

From: Isaac Sparrow <isaac(dot)sparrow(at)visicomp(dot)com>
To: Rene Pijlman <rene(at)lab(dot)applinet(dot)nl>, Craig Lawton <craiglawton(at)qwest(dot)net>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Error: ClassNotFoundException
Date: 2001-10-29 18:17:09
Message-ID: 01102910170900.01159@greenblatt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Saturday 27 October 2001 03:32 am, Rene Pijlman wrote:
> On Fri, 26 Oct 2001 21:34:37 -0600, you wrote:
> >I have successfully installed
> >PostgreSQL on my Mac G4 running Mac OS X 10.1.
>
> I have no experience with this platform, but...
>
> >"Class.forName("org.postgresql.Driver");" returns the error
> >"java.lang.ClassNotFoundException: org.postgresql.Driver".
>
> ... typically means that the driver's jar file is not found or
> cannot be read by the Java runtime.

Right. The JVM is telling you that the class "org.postgresql.Driver" is not
on your classpath. You need to add the jar containing the driver to your
classpath.

>
> Regards,
> René Pijlman <rene(at)lab(dot)applinet(dot)nl>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--

-------------------------------------------------------------------
Isaac Sparrow
Staff Engineer
VisiComp, Inc.
http://www.visicomp.com

GnuPG Key Fingerprint:
1060 5A07 F6EC B2B3 9AAA 3EA5 7B79 EFE1 6397 4F47
Get my public key at:
http://www.concentric.net/~issparow

Latin is a language,
As dead as can be.
First it killed the Romans,
And now it's killing me.

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Nick Fankhauser 2001-10-29 18:19:07 Re: "No Suitable Driver"
Previous Message Dave Cramer 2001-10-29 18:13:34 Re: DatabaseMetaData.getTables()