pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Hubbach <jeff.hubbach@cha.com>
To: pgsql-jdbc@postgresql.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> (raw)
In-Reply-To: <fd30a5560706221240ne8e53c4oba2024dd3f79c5dc@mail.gmail.com>

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

view thread (3+ messages)  latest in thread

Message-ID: <C2A18400.374C%jeff.hubbach@cha.com>
Permalink:  ../C2A18400.374C%25jeff.hubbach@cha.com/
Also on:    postgresql.org/message-id/C2A18400.374C%jeff.hubbach@cha.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: jeff.hubbach@cha.com
  Subject: Re: Unable to compile java file with all Classpaths set
  In-Reply-To: <C2A18400.374C%jeff.hubbach@cha.com>
  References: <fd30a5560706221240ne8e53c4oba2024dd3f79c5dc@mail.gmail.com> <C2A18400.374C%jeff.hubbach@cha.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