Re: BUG #6106: JAR File has no source attachment

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: BUG #6106: JAR File has no source attachment
Дата
Msg-id 4E1AAA7C.2020705@postnewspapers.com.au
обсуждение исходный текст
Ответ на BUG #6106: JAR File has no source attachment  ("Jon C." <camilleri.jon@gmail.com>)
Список 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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Jon C."
Дата:
Сообщение: BUG #6106: JAR File has no source attachment
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: BUG #6105: Failed to load Main-Class manifest attribute