pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Jon C. <camilleri.jon@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6106: JAR File has no source attachment
Date: Mon, 11 Jul 2011 15:47:08 +0800
Message-ID: <4E1AAA7C.2020705@postnewspapers.com.au> (raw)
In-Reply-To: <201107101404.p6AE4RUK079441@wwwmaster.postgresql.org>
References: <201107101404.p6AE4RUK079441@wwwmaster.postgresql.org>

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



view thread (3+ messages)  latest in thread

Message-ID: <4E1AAA7C.2020705@postnewspapers.com.au>
Permalink:  ../4E1AAA7C.2020705@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4E1AAA7C.2020705@postnewspapers.com.au

 · 

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-bugs@postgresql.org
  Cc: craig@postnewspapers.com.au, camilleri.jon@gmail.com
  Subject: Re: BUG #6106: JAR File has no source attachment
  In-Reply-To: <4E1AAA7C.2020705@postnewspapers.com.au>
  References: <201107101404.p6AE4RUK079441@wwwmaster.postgresql.org> <4E1AAA7C.2020705@postnewspapers.com.au>

* 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