Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id D14309FB807 for ; Fri, 22 Jun 2007 16:57:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 87508-07 for ; Fri, 22 Jun 2007 16:57:43 -0300 (ADT) X-Greylist: delayed 00:07:40.545288 by SQLgrey-1.7.5 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id EA8259FB7B8 for ; Fri, 22 Jun 2007 16:57:43 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from ex14.myhostedexchange.com (ex14.myhostedexchange.com [69.50.2.20]) by svr4.postgresql.org (Postfix) with ESMTP id 767F25AF2CB for ; Fri, 22 Jun 2007 19:50:02 +0000 (GMT) Received: from 205.238.79.158 ([205.238.79.158]) by ex14.hostedexchange.local ([69.50.2.20]) with Microsoft Exchange Server HTTP-DAV ; Fri, 22 Jun 2007 19:49:55 +0000 User-Agent: Microsoft-Entourage/11.3.3.061214 Date: Fri, 22 Jun 2007 13:49:52 -0600 Subject: Re: Unable to compile java file with all Classpaths set From: Jeff Hubbach To: Message-ID: Thread-Topic: [JDBC] Unable to compile java file with all Classpaths set Thread-Index: Ace1Bn+vvnWZvSD5EdyyugANk0UQgg== In-Reply-To: Mime-version: 1.0 Content-type: multipart/alternative; boundary="B_3265364993_78419057" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.502 tagged_above=0 required=5 tests=AWL=-0.000, BAYES_50=0.001, HTML_MESSAGE=0.001, RCVD_NUMERIC_HELO=1.5 X-Spam-Level: * X-Archive-Number: 200706/77 X-Sequence-Number: 17139 > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3265364993_78419057 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Kareem, The errors are telling you exactly what is wrong. Your =B3sample=B2 from the ne= t 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: =20 public static void main(String[] args) throws Exception { -- Jeff --B_3265364993_78419057 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [JDBC] Unable to compile java file with all Classpaths set</TITL= E> </HEAD> <BODY> <FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>Karee= m,<BR> <BR> 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 t= hat throw checked exceptions. You either need to wrap these in a try/catch b= lock and explicitly catch them, or specify that your main() method throws th= em.<BR> <BR> If you just want to get it working, change your main() declaration line to:= <BR>   <BR>   public static void main(String[] args) throws Exception {<BR> <BR> -- Jeff</SPAN></FONT> </BODY> </HTML> --B_3265364993_78419057--