I am glad you solved your problem but I want to mention something that just happened to me. I just inherited a broken program created with Java 5 in Net Beans about a decade ago. I am trying to revive it, do some analysis and possibly refactoring to bring it up to date, if needed. I imported the files (the entire project) into Net Beans and I kept getting errors telling me that I was missing several jar files and that certain packages were missing, even though these things were present in the project. I spent several days scratching my head, trying all sorts of things, and doing some research. I had come across some info regarding this behavior basically stating that there was a bug in Net Beans that can cause this problem.
Anyway, to make a long story short, I installed Eclipse created an an empty project in Eclipse and then imported the Net Beans project into Eclipse. Guess what? There were no errors, all the jar files and packages that net Beans could not find were present, and I had an old program that had some functionality. I guess I am just trying to say that if you have issues with java 5 code, and you look at the code and know that everything is in place, it might be the Net Beans
IDE.