Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 4BFA09FB7F0 for ; Fri, 22 Jun 2007 16:54:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 75762-02 for ; Fri, 22 Jun 2007 16:54:10 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by postgresql.org (Postfix) with ESMTP id 863EF9FB7A9 for ; Fri, 22 Jun 2007 16:54:12 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id u2so956286uge for ; Fri, 22 Jun 2007 12:54:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=gvEZlB95QxQYBEKNXbLGyx3qhs2bDjirilo78QWqsJpU6xjih1FN0nvqIOH6FQ1cZ1HrYcP7tx9AoiWX3uZuCVPOSM1OUkOMIgqtrEVUlqP+o7E/O7jgUFno7tlXEu7zkKcBX6ndRjYBFFFLWRrUzqmQG9viQA7uXbzv0yGmKqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=gW3tmfbfDCgtRWDMwNayCLjYk/pgwIjbRP8pHxSgV1HkEgjNn2VCRFToieeisbuxk8ADP5CC4oYicbw0YxPM4OdnWkDRxrdtQdYqFz76eNKp+TWT1umoIqvLaJd2/Pp/Agcwy7FVnFK329HNLRML9XnRJoRafXzbiydEPZRKOzI= Received: by 10.78.118.5 with SMTP id q5mr1773398huc.1182542051242; Fri, 22 Jun 2007 12:54:11 -0700 (PDT) Received: from ?192.168.1.33? ( [81.107.198.252]) by mx.google.com with ESMTP id 7sm16656547nfv.2007.06.22.12.54.08 (version=SSLv3 cipher=RC4-MD5); Fri, 22 Jun 2007 12:54:09 -0700 (PDT) Message-ID: <467C28BD.20404@enterprisedb.com> Date: Fri, 22 Jun 2007 20:53:33 +0100 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: Kareem Habib CC: pgsql-jdbc@postgresql.org Subject: Re: Unable to compile java file with all Classpaths set References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/76 X-Sequence-Number: 17138 Kareem Habib wrote: > Every time I compile it I get the following output: > > C:\>javac maxi.java > maxi.java:5: unreported exception java.lang.ClassNotFoundException; must be > caug > ht or declared to be thrown > Class.forName("org.postgresql.Driver"); > ... ^ Please read http://java.sun.com/docs/books/tutorial/essential/exceptions/ -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com