academic said:
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?
I try to compile some examples in ImageJ and it appears to be complaining
about the line numbers.
Is there a way to deal with line numbers in ImageJ and/or java?
A couple of things:
- Your question is so vague, that it is close to impossible to determine
what your problem is. We have to guess. Please consider
http://www.catb.org/~esr/faqs/smart-questions.html
- Beginner's questions are typically handled in comp.lang.java.help. But
this also doesn't excuse you from doing your own homework.
- 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.
- 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
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,
complete, unaltered error message. Copyed'n'pasted directly into your
posting, not retyping it, and (b) the complete small source code. If
your code is not small, you need to write a small demo example which
still demonstrates the problem. Otherwise, we can only guess. We need
something to work with, and something which is so small, that we don't
have to waste time to peal out the real problem from a pile of code.
/Thomas