Error IDE-0002 when debugging
Hi
·
When I debug a program I will sometimes get at runtime an IDE-0002 error when calling a method from a class. In the error message the IDE complains that it cannot open the file for the class. The class is defined in the same file that has the main method. Why is this happening? How can I correct it?
·
·
Thanks,
·
Enrique
·
When I debug a program I will sometimes get at runtime an IDE-0002 error when calling a method from a class. In the error message the IDE complains that it cannot open the file for the class. The class is defined in the same file that has the main method. Why is this happening? How can I correct it?
·
·
Thanks,
·
Enrique
Comments
import stamp.core.*;
public class ClassInClass_test {
· //the internal class may be private, protected or public
· static protected class InternalClass {
··· //its constructor must be protected or public
··· public InternalClass() {
··· }
· }
· static InternalClass c1 = new InternalClass();
· static void main() {
··· InternalClass c2 = new InternalClass();
··· System.out.println("internal class defined");
··· while (true) {
··· }
· }
}
regards peter
The program is ok. When I use 'program' the 15 appears at the JIDE terminal.
When using 'debug' I also get the JVM error you mentioned.
Single stepping the program, it appears to be working also.
I will have to check the origin of this error in the IDE sources.
regards peter
· {kJVM_ERROR, 26, "No line number info in class file `%s'.", "The line number information could not be found. Either the class was not compiled with debugging information or a compiler generated method is being executed.", "Compile the class with the `-g' flag, or use 'run' rather than 'step'."},
I uploaded a text file with all internal error texts to
http://forums.parallax.com/showthread.php?p=550606
The info "Either the class was not compiled with debugging information or a compiler generated method is being executed" is not mentioned in the PDF file that were posted by Ryan Clarke (also at link above).
The reason in this case that you see this error·appears to be that a compiler generated
method is being executed. I will see if I can change that to a warning or remove
the message altogether.
regards peter
Post Edited (Peter Verkaik) : 10/3/2007 2:16:31 PM GMT