Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am getting following error in eclipse
" java.lang.ArrayIndexOutOfBoundException"
i have created a simple blank activity, which we always do while creating the new project.
i have updated sdk versions, latest jre installed well.
I am using Macbook.
I am unable to trouble shoot this problem kindly help me out.
Posted
Comments
Fredrik Bornander 6-Feb-15 5:41am    
Can you show any code?
Member 11402033 6-Feb-15 5:44am    
create a new project on eclipse u get the code. i didn't made any editing, i didn't used any arrays
Richard MacCutchan 6-Feb-15 5:56am    
You must have an array somewhere that the code is using, in order to throw this exception. Use your debugger to track the line of code where the error occurs.
Member 11402033 6-Feb-15 6:00am    
buddy a basic program when u create a new project, what error u expect from that?
Richard MacCutchan 6-Feb-15 6:03am    
I don't expect anything, nor have I ever seen this happen. So without more information it is anyone's guess what the problem is. If you want help with this then you need to provide a lot more detailed information; remember we cannot see your screen or your code.

1 solution

Java
In Java programs it happened with me sometime when my code expects some program arguments but i forgot to pass them.

Example:

class A{

psvm(String ...s){
  system.print.out(s[0]);
}

}

And we execute the program like

>java A

so ArrayIndexOutOfBoundException Exception comes 

so may be you should check , if something like that is happening or not ??
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900