I had a feeling that it wasn't the code that was generating the error, and it seems I was right. To be extra sure I wasn't going crazy, I compiled the code manually via command line last night and it compiled without problem. To fix the problem, I copied all of the source code, deleted the project in NetBeans, created a new one, and pasted the source back into the right folder. Then NetBeans was able to compiled the source without goofy errors. I intended to post the fix yesterday night but for some reason I was not able to log in, so I'm only able to post the update today.