Target VM failed to initialize error

Hello,

I am going through this tutorial and I have gotten an error despite copying the code exactly. Is it because my computer can’t compute the complextiy of the program?

The console says;

IndexOutofBoundsException: Index 10 out of bounds for length 10

Could not run the sketch (Target VM failed to initialie)

For more information, read Help? Troubleshooting.

Many thanks, I am stumped at what it means.

Is it possible for us to see the code that failed?

Welcome to the forum. Computers start counting from zero. For example, if you had an array with 10 elements from 0 to 9 and your code asked for array element at index 10 it would generate an error message similar to what you have posted because you asked for an element that it has no way of providing. The video that you posted is non-functional on my system; the main way that we have to help you is for you to provide either the code that you tried to run or a minimal runnable example which demonstrates the problem. Copy/paste the code between two sets of three graeve characters or use the preformatted icon at the top of the editor (</>).

1 Like

This question is also posted here:

https://www.reddit.com/r/processing/comments/1hvz966/indexoutofboundsexception_could_not_run_the/

:)