Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

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: Fri, 22 Jun 2007 20:53:33 +0100
  • Message-id: <467C28BD.20404@enterprisedb.com> <text/plain>

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



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group