Loading...
Logo
Processing Forum
OK, guys,

  I get an error message"
Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException: 1
    at TTY_Plot_2.draw(TTY_Plot_2.java:80)
    at processing.core.PApplet.handleDraw(Unknown Source)
    at processing.core.PApplet.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:636)

How can I see which line is TTY_Plot_2.java:80?

William Estrada
Mt Umunhum, CA, USA
HTTP://64.124.13.3 ( Mt-Umunhum-Wireless.net )
Skype: MrUmunhum

Replies(3)

Processing Implementations is about implementation of Processing in alternative languages, not about the implementation of our good old Processing. Moved.

And sometime I just get the generated Java file in the temp / tmp folder of my system. In my case, for my current system (Win7), it is at C:\Users\<login name>\AppData\Local\Temp but obviously it depends on your system.
A simpler way to get the information is to export to applet, since Processing includes the generated .java files.
Boy do I feel dumb!

The current line number is shown on the last line in the editor.

Sorry.

William Estrada
Mt Umunhum, CA, USA
HTTP://64.124.13.3 ( Mt-Umunhum-Wireless.net )
Skype: MrUmunhum
Not for runtime errors, like the one you shown. Processing generates a .java file out of the .pde file(s), and adds lot of lines before the first (automatic imports, declaration of main class, etc.). So the line number you see in the editor isn't the one where you have the runtime error (unlike compiler errors);