7 Replies Latest reply: Jan 21, 2010 1:41 PM by DarrylBurke RSS

    Netbeans : Cannot add Library (ArrayIndexOutOfBounds)

    843810
      Hey,

      it seems to be a problem some others have too, but with the lack of a decent Netbeans forum a workaround remains unknown to me.

      Whenever I try a button like Open File, Add JAR/Folder to library, I get an java.lang.ArrayIndexOutOfBoundsException
      This is in NB 5, 5.5 and 6.0 M5

      I need to include a package from a school project before I can even properly run something I need to heavily modify.

      Any ideas on things I can do?

      The complete exceptioncode, probably not relevant; but anyways
      java.lang.ArrayIndexOutOfBoundsException: 3184
           at sun.awt.shell.Win32ShellFolder2.getFileChooserIcon(Win32ShellFolder2.java:748)
           at sun.awt.shell.Win32ShellFolderManager2.get(Win32ShellFolderManager2.java:248)
           at sun.awt.shell.ShellFolder.get(ShellFolder.java:221)
           at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$LazyWindowsIcon.createValue(WindowsLookAndFeel.java:1873)
           at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:185)
           at javax.swing.UIDefaults.get(UIDefaults.java:130)
           at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
           at javax.swing.UIDefaults.getIcon(UIDefaults.java:411)
           at javax.swing.UIManager.getIcon(UIManager.java:613)
           at javax.swing.plaf.basic.BasicFileChooserUI.installIcons(BasicFileChooserUI.java:237)
           at javax.swing.plaf.basic.BasicFileChooserUI.installDefaults(BasicFileChooserUI.java:219)
           at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:135)
           at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(WindowsFileChooserUI.java:126)
           at javax.swing.JComponent.setUI(JComponent.java:653)
           at javax.swing.JFileChooser.updateUI(JFileChooser.java:1755)
           at javax.swing.JFileChooser.setup(JFileChooser.java:366)
           at javax.swing.JFileChooser.<init>(JFileChooser.java:332)
           at javax.swing.JFileChooser.<init>(JFileChooser.java:285)
           at org.netbeans.modules.openfile.FileChooser.<init>(FileChooser.java:44)
           at org.netbeans.modules.openfile.OpenFileAction.prepareFileChooser(OpenFileAction.java:66)
           at org.netbeans.modules.openfile.OpenFileAction.performAction(OpenFileAction.java:106)
           at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:100)
           at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:53)
           at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:96)
           at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
           at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
           at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
           at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
           at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
           at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
           at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
           at java.awt.Component.processMouseEvent(Component.java:5501)
           at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
           at java.awt.Component.processEvent(Component.java:5266)
           at java.awt.Container.processEvent(Container.java:1966)
           at java.awt.Component.dispatchEventImpl(Component.java:3968)
           at java.awt.Container.dispatchEventImpl(Container.java:2024)
           at java.awt.Component.dispatchEvent(Component.java:3803)
           at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
           at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
           at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
           at java.awt.Container.dispatchEventImpl(Container.java:2010)
           at java.awt.Window.dispatchEventImpl(Window.java:1778)
           at java.awt.Component.dispatchEvent(Component.java:3803)
      [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
           at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
           at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
           at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      And one other small question, when the code says to open a file like tiles32.png; where should it be placed by default in the workspace environment?