sanmoy
unread,Mar 1, 2011, 2:40:09 PM3/1/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to WiiuseJ users
Hi All,
I was trying to run the sample application and got this
exception"java.lang.ArrayIndexOutOfBoundsException: 0"
Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(1, true);
Wiimote wiimote = wiimotes[0];
I have tried to run this application in both windows xp and windows 7.
First I was using default MS stack, then I installed Broadcom.
My nintendo remote is connected to my pc and I can view the services.
I have tried this api also, but i am getting the same result :
Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(1,
true ,WiiUseApiManager.WIIUSE_STACK_MS);
I started debugging the code, and found it is failing inside
connectWiimotes() of WiiUseApiManager class. wiiuse.find(nb, 3) is
returning 0, find is an native method, so I cannot analyze more.
Please help me to resolve this problem.