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: Fri, 22 Jun 2007 13:49:52 -0600
- Message-id: <C2A18400.374C%jeff.hubbach@cha.com> <text/plain>
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
Home |
Main Index |
Thread Index