Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsExcep

What does it mean?Thanks
[38 byte] By [ardmorea] at [2007-11-27 9:04:13]
# 1
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 100
ardmorea at 2007-7-12 21:37:07 > top of Java-index,Java Essentials,Java Programming...
# 2
> Exception in thread "AWT-EventQueue-0"> java.lang.ArrayIndexOutOfBoundsException: 100You've over or under-shot the allowed indices for an array.You might want to consider showing more info to get more info here.
petes1234a at 2007-7-12 21:37:07 > top of Java-index,Java Essentials,Java Programming...
# 3
Remember that array indices start from 0. So an array with 100 elements is indexed from 0 - 99. There is no element at postion 100.
floundera at 2007-7-12 21:37:07 > top of Java-index,Java Essentials,Java Programming...
# 4
pleaz tell me where is the error created.If the error when you invoke a jar by "java -jar" or when you create a UI, pleaz tell me the version of the current JRE and the OS.
Stone.lia at 2007-7-12 21:37:07 > top of Java-index,Java Essentials,Java Programming...
# 5

u are accessing an array of object that is not created for example

//error codes

private String strArray tags[] = new String [10]

for (int i=0; i<=10; i++){

strArray[i] = new String();

strArray[i] = i.toString();

}

/**For example, u are accessing 10 which does not exist as it ended at 9,

and so out of bounds occurs..

it went out of bounds as the end is 9 and u are assigning something to a memory that does not exists(10)

*/

//right code

private String strArray tags[] = new String [10]

for (int i=0; i<10 i++){

strArray[i] = new String();

strArray[i] = i.toString();

}

Alandera at 2007-7-12 21:37:07 > top of Java-index,Java Essentials,Java Programming...
# 6
For Mr. AlanderMy question is for the topic owner. ^_^
Stone.lia at 2007-7-12 21:37:07 > top of Java-index,Java Essentials,Java Programming...
# 7

> For Mr. Alander

>My question is for the topic owner. ^_^

Why would you need to know the JRE and OS being used? An ArrayIndexOutOfBounds has no relation to those things..

@OP: Use the answer provided by alander. Somewhere in your GUI code there is a one-off loop.

~Tim

SomeoneElsea at 2007-7-12 21:37:07 > top of Java-index,Java Essentials,Java Programming...
# 8
@SomeoneElse In the Ubuntu system, when using 'java -jar XXX.jar' to install the jboss orJAXB, there is a error same as the "AWT-EventQueue-0" . That because the jre jar be part of the GCJ.
Stone.lia at 2007-7-12 21:37:07 > top of Java-index,Java Essentials,Java Programming...