From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
---|---|
To: | "Jon C(dot)" <camilleri(dot)jon(at)gmail(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #6106: JAR File has no source attachment |
Date: | 2011-07-11 07:47:08 |
Message-ID: | 4E1AAA7C.2020705@postnewspapers.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2011-07-11 09:02:12 | Re: BUG #6106: JAR File has no source attachment |
Previous Message | Craig Ringer | 2011-07-11 07:35:19 | Re: BUG #6105: Failed to load Main-Class manifest attribute |