X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 7CE4E11F610B for ; Wed, 5 Apr 2006 15:54:01 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 76163-08 for ; Wed, 5 Apr 2006 15:54:00 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.194]) by postgresql.org (Postfix) with ESMTP id 4585D11F60B9 for ; Wed, 5 Apr 2006 15:53:58 -0300 (ADT) Received: by uproxy.gmail.com with SMTP id c2so1088703ugf for ; Wed, 05 Apr 2006 11:53:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=AC+R/MIHLL38HwUcoiizQIbVVraOUFhTYZqPXC8dPy3ybmLnXZ/sQl1qIIFtQHZXTXY0Oh0eDo/YEfsbRP4j387C0D3I7akw7zhM10JuCOfw9gwWm/f3Hmu7Y1ZAbqaHer1RuSeCO6NpLIg3UzRtxljHR6IWXxOK8RvBoUFE6l0= Received: by 10.78.17.1 with SMTP id 1mr235801huq; Wed, 05 Apr 2006 11:53:58 -0700 (PDT) Received: by 10.78.27.17 with HTTP; Wed, 5 Apr 2006 11:53:58 -0700 (PDT) Message-ID: <3a829cca0604051153i71f8a212n5992243608f6f2cb@mail.gmail.com> Date: Wed, 5 Apr 2006 20:53:58 +0200 From: Kamal To: pgsql-jdbc@postgresql.org Subject: I just can't use the org.postgresql.Driver class... Please help! MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200604/46 X-Sequence-Number: 14980 Hi everybody. Thi is my first time trying to use postgresql jdbc and I'm very frustrated. This is my env: C:\>java -version java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) I have these files in the same directory: Simple source file (JasperReportsTest.java): public class JasperReportsTest { public static void main(String[] args) { Class.forName("org.postgresql.Driver"); } } Simple batch file to compile it (JasperReportsTest.bat): set CLASSPATH=3Dpostgresql-8.1-405.jdbc3.jar javac JasperReportsTest.java > javac.log 2>&1 Simple log file making me crazy (javac.log): JasperReportsTest.java:6: unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown Class.forName("org.postgresql.Driver"); ^ 1 error Obviously the file postgresql-8.1-405.jdbc3.jar is there... Why does it say ClassNotFound if the file is there? Can anyone help me? Thank you : ) -- Kamal