
Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
>> I'm new to java and don't know if this is a java question or an ImageJ
>> question.
[quoted text clipped - 13 lines]
> - Beginner's questions are typically handled in comp.lang.java.help. But
> this also doesn't excuse you from doing your own homework.
What are you assuming here?
> - A guess: If you try to compile Java source code with leading line
> numbers, then there is something very wrong. Unlike languages like classic
> BASIC, line numbers are not part of Java source code. You are either
> trying to compile something which is not Java at all, or you somehow
> managed to add some leading line numbers to some Java code.
I down loaded an example. See my post to Chris
I'm sure I'm doing something wrong - that the reason for my question.
> - Another guess: The compiler complains about some error at a specific
> line in your code. In this case examine your source code. Examine the
> location the compiler pointed out! The compiler is in no way complaining
> about the line number as such, but about an error in (or near) that
I'm not sure I understand - the downloaded code does have line numbers so
if the compiler can't handle them why wouldn't it complain about them?
Thanks for replying
> line, and the compiler is so helpful to tell you where it thinks things go
> wrong. If you have such an error, people here need (a) the original,
[quoted text clipped - 6 lines]
>
> /Thomas
Oliver Wong - 14 Feb 2006 18:06 GMT
>>> I'm new to java and don't know if this is a java question or an ImageJ
>>> question.
>>> BTW, Is there an ImagJ NG?
Not that I know of.
>>> I try to compile some examples in ImageJ and it appears to be
>>> complaining about the line numbers.
[quoted text clipped - 11 lines]
>
> What are you assuming here?
Thomas is probably assuming that this is a beginner question, since you
opened your message with "I'm new to Java", and so basically he was saying
comp.lang.java.help is "more geared" to beginner questions than
comp.lang.java.programmer.
>> - A guess: If you try to compile Java source code with leading line
>> numbers, then there is something very wrong. Unlike languages like
[quoted text clipped - 12 lines]
> I'm not sure I understand - the downloaded code does have line numbers so
> if the compiler can't handle them why wouldn't it complain about them?
Everything starting from "- Another guess:" doesn't apply to your
situation. It's just that your original question as phrased as to be
ambiguous as to what the actual problem was. Thomas was making some educated
guesses as to what problems you were having, thinking perhaps that your
compiler gave you a message with the key words "Error" and "line number",
and you had mistakenly assumed that it was complaining about the line number
itself, when actually what the compiler is saying that some (unspecified)
error is located on that specific line number. It turns out that this second
guess is wrong (based on your post to Chris).
As to "if the compiler can't handle them why wouldn't it complain about
them?", probably because it never occurred to the person who wrote compiler
to actually check and complain about line numbers. It's kind of like
sticking a celery in the CD-drive of your computer will probably cause it to
break, but the error message you see won't be "Error: You inserted a celery
into the CD drive". The computer can't handle celeries, but that doesn't
mean there will be an error message specifically tailored for that
situation.
- Oliver
academic - 14 Feb 2006 18:57 GMT
thanks for your input.
Chris answered my original question and knowing that java does not use line
numbers I was able to move on and will probably need different help soon.
thanks again
>>>> I'm new to java and don't know if this is a java question or an ImageJ
>>>> question.
[quoted text clipped - 60 lines]
>
> - Oliver