Re: How to avoid the message "Unknown source"?




"Richard" <grin@xxxxxxxx> wrote in message
news:439b1212$0$19244$626a54ce@xxxxxxxxxxxxxxx
> Before I used the option -classic with java but it is not supported
> anymore.
>
> I would like to know the line that caused the problem in my program
> without using a debugger.
>
> Thanks in advance for your answer.
>
It's awfully hard to help someone who asks such a vague question.

You haven't provided any source code and you haven't even identified the
nature of your problem. Is it a compile error? A runtime error? Or simply a
program that doesn't do what you want it to do?

If you are getting a compiler error, javac, the java compiler, should be
giving you a reasonably clear error message as well as an indication of
which line of the source code is the problem. If you are geting a compile
message but don't understand the message, please post at least the source
line (and ideally some of the context of the source line) and the message
and we can try to help you understand the problem.

If you are getting a runtime error, you should be getting a reasonably clear
exception message that will give you a clue about your problem. If you don't
understand the exception message, post some source code and the full
exception message, including stacktrace, and we'll try to help.

If the program is simply not doing what you want it to do, you will need to
provide some code, explain what the program is doing, and describe what it
should be doing if you want some help with understanding the problem.

But unless you provide more information, there is very little that anyone
can do. Your post simply tells us that something is broken without giving us
anything that we can use to diagnose the problem.

I will make one guess though: if your program used to work when you used
the -classic option, your program probably uses deprecated classes that are
no longer supported in your new version of Java. This will probably require
you to modify some of your code before it will compile cleanly again. But
without more information, I can't be sure this guess is accurate.

Rhino


.



Relevant Pages

  • Re: creaping coupling......
    ... In C++ it would be trivial to break that source code dependency, ... When you compile a .java module, ... In Java and C# it's asserted at compile time. ...
    (comp.object)
  • Re: Java server wont run after reboot
    ... > package definitions in your source code. ... Execute from that directory, no classpath definition needed. ... > java HelloWorld ... > If you compile to a different location, ...
    (RedHat)
  • Re: Java classes called from .net program
    ... if the java classes are available in source code, you can compile them from ... >I need to call methods of java classes from a .net program. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Java server wont run after reboot
    ... execute from outside the directory where the java files is located, ... then I need to go to ~, and compile it from there: ... the source code is dependent on what directory you want to compile ... I'm not out to destroy Microsoft. ...
    (RedHat)
  • Re: C++/TCL Need Solution to Compile Error c2784
    ... There's always the "Platform SDK" from MSDN if you need the window.h stuff, ... Since I'm using the Command Prompt rather than the GUI to compile the ... I then tried to compile your source code and I kept getting the same ...
    (comp.lang.tcl)