When an exception is thrown during execution, the stack trace is
reporting "Unknown Source" instead of a <source filename:line number>.
I suspect because the source cannot be found from the current working
directory.
How do I tell the JVM where to look so that it can report line numbers
properly?
Thank you.
epp
John McGrath - 08 Apr 2005 20:45 GMT
> When an exception is thrown during execution, the stack trace is
> reporting "Unknown Source" instead of a <source filename:line number>.
[quoted text clipped - 3 lines]
> How do I tell the JVM where to look so that it can report line numbers
> properly?
It does not need access to the source files in order to report the line
number. It just needs to know the line number. The "-g" option to the
"javac" compiler controls whether this information is included in the
class files.

Signature
Regards,
John McGrath