Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 12F6FB5DCC7 for ; Mon, 11 Jul 2011 09:48:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 10100-10 for ; Mon, 11 Jul 2011 12:48:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id 7305DB5DCC2 for ; Mon, 11 Jul 2011 09:48:24 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id 1BA0014B4; Mon, 11 Jul 2011 03:47:11 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hinZfaGsu4dk; Mon, 11 Jul 2011 03:47:10 -0400 (EDT) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id F10D827; Mon, 11 Jul 2011 03:47:09 -0400 (EDT) Received: from [10.0.0.53] (wallace.localnet [10.0.0.53]) by mail.postnewspapers.com.au (Postfix) with ESMTP id F1E13AE6B2; Mon, 11 Jul 2011 15:47:08 +0800 (WST) Message-ID: <4E1AAA7C.2020705@postnewspapers.com.au> Date: Mon, 11 Jul 2011 15:47:08 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Thunderbird/3.1.9 MIME-Version: 1.0 To: "Jon C." CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6106: JAR File has no source attachment References: <201107101404.p6AE4RUK079441@wwwmaster.postgresql.org> In-Reply-To: <201107101404.p6AE4RUK079441@wwwmaster.postgresql.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201107/83 X-Sequence-Number: 30695 On 10/07/11 22:04, Jon C. wrote: First: please use this bug report form only for bug reports. If you cannot clearly demonstrate a bug, please ask for help on the pgsql-general, pgsql-jdbc, etc mailing lists as appropriate. I suspect most of your questions would be better answered on the Java Newbies forum, on Stack Overflow, or on your class/course's message boards. > When running ExecSQL.java on my machine an error is being displayed. [snip] > Sourced from Core Java Volume 2 (7th Edition) > ISBN 0-13-111826-9 OK, so the program you're trying to run is an example program from a textbook. > Error: Source not found (Screenshot of error at http://bit.ly/pMS8lP). That's a ridiculously tiny screenshot, and you haven't explained when/how you got that error. Was it when you ran the example program according to the instructions given in its JavaDoc, using java -classpath postgresql-8.4-702.jdbc4.jar:. ExecSQL scriptfile ? As best as I can vaguely guess from that tiny screenshot, to me it looks like you're trying to open the JDBC driver jar and edit/view its source code, but you haven't downloaded the source code so Eclipse can't find it and is telling you so and providing a bytecode dump instead. If that's the case, it's just a basic Eclipse usage issue - you need to tell Eclipse where to find the source code. Most JAR files do not contain the source code to the program. It's distributed separately. See http://jdbc.postgresql.org. Are you doing an Introduction to Java Programming course or something like that? If so, getting you to use Eclipse probably qualifies as cruel and unusual punishment - it's an expert's system and sometimes hard to use even then. It's totally unsuitable for Java newbies. Check out BlueJ (http://www.bluej.org/) or, if you need something a bit more capable than that, look at the Netbeans IDE at http://netbeans.org/ . -- Craig Ringer