Shop OBEX P1 Docs P2 Docs Learn Events
Error IDE-0002 when debugging — Parallax Forums

Error IDE-0002 when debugging

EnriqueEnrique Posts: 90
edited 2007-10-03 14:00 in General Discussion
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

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2007-09-15 20:51
    The setup should be something like:

    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
  • EnriqueEnrique Posts: 90
    edited 2007-09-16 18:38
    OK, I got pass this error. I attached a java file that won’t give me the IDE-0002 message but at run time, when debugging the program, I get a [noparse][[/noparse]Error JVM-0026] No line number info in class file ‘DontGiveUpTest’.
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2007-09-16 19:12
    I downloaded and tested your program.
    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
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2007-10-03 14:00
    The internal text for JVM error 26 is
    · {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
Sign In or Register to comment.