Re: Unable to compile java file with all Classpaths set

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: Kareem Habib <kareem(dot)habib(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Unable to compile java file with all Classpaths set
Date: 2007-06-22 19:53:33
Message-ID: 467C28BD.20404@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2007-06-22 21:05:02 Re: a simple example of XA (not working)
Previous Message Jeff Hubbach 2007-06-22 19:49:52 Re: Unable to compile java file with all Classpaths set