This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
You are getting the ArrayIndexOutOfBoundsException because you have not passed any arguments into your app when you start it (i.e. when you run it in JCreator). args references the first argument and args references the second argument. By default, when you run a java app in JCreator, it does not give you the chance to specify the "main" arguments. To turn that feature on: 1. Go to Tools --> Options 2. In the "Options" dialog box, select "JDK Tools" on the left. 3. In the "Select Tool Type" drop-down, select "Run Application" and then select "<default>" 4. Click the "Edit" button 5. Select the "Parameters" tab 6. Check the option "Prompt for main method arguments" 7. Click OK The next time you do a Build --> Execute File, you should get an input box where you can specify the arguments you wish to pass to the main method. Enter each argument with a space between. [ February 06, 2004: Message edited by: Blake Minghelli ]
Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"