Re: Unable to compile java file with all Classpaths set

From: Jeff Hubbach <jeff(dot)hubbach(at)cha(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Unable to compile java file with all Classpaths set
Date: 2007-06-22 19:49:52
Message-ID: C2A18400.374C%jeff.hubbach@cha.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Kareem,

The errors are telling you exactly what is wrong. Your ³sample² from the net
is bad. There are method calls in the code sample you posted that throw
checked exceptions. You either need to wrap these in a try/catch block and
explicitly catch them, or specify that your main() method throws them.

If you just want to get it working, change your main() declaration line to:

public static void main(String[] args) throws Exception {

-- Jeff

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Heikki Linnakangas 2007-06-22 19:53:33 Re: Unable to compile java file with all Classpaths set
Previous Message Kareem Habib 2007-06-22 19:40:30 Unable to compile java file with all Classpaths set