pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Kareem Habib <kareem.habib@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Unable to compile java file with all Classpaths set
Date: Fri, 22 Jun 2007 20:53:33 +0100
Message-ID: <467C28BD.20404@enterprisedb.com> (raw)
In-Reply-To: <fd30a5560706221240ne8e53c4oba2024dd3f79c5dc@mail.gmail.com>
References: <fd30a5560706221240ne8e53c4oba2024dd3f79c5dc@mail.gmail.com>

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



view thread (3+ messages)

Message-ID: <467C28BD.20404@enterprisedb.com>
Permalink:  ../467C28BD.20404@enterprisedb.com/
Also on:    postgresql.org/message-id/467C28BD.20404@enterprisedb.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: heikki@enterprisedb.com, kareem.habib@gmail.com
  Subject: Re: Unable to compile java file with all Classpaths set
  In-Reply-To: <467C28BD.20404@enterprisedb.com>
  References: <fd30a5560706221240ne8e53c4oba2024dd3f79c5dc@mail.gmail.com> <467C28BD.20404@enterprisedb.com>

* 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