Well, I'm using build.xml and project.xml created by someone else. Netbeans is 8.0.2.No idea, when I set the target runtime it sticks to whatever I set it to. IIRC, target runtime is stored in the Ant build script or some config file there, you might want to check that out. Are you sure your install isn't bugged somehow? I used Netbeans 8, SE release, although I'm on Debian, not Windows/OSX.Then I need to rightclick on the project name and choose Java 1.7, but it never remembers this setting. Any idea?
For compiling and running it uses the correct value from build.xml, but I found another setting in project.xml for the compatibility warnings generated by the editor. After changing it in netbeans project properties a "saving project" popup appears for a moment, but is not actually changing the value in the file.
I resorted to hand-editing the source-level tags in there from 1.5 to 1.7, but no luck, they must have forgotten to update something, as it then regards the project as invalid and in netbeans log file it shows a SAXParseError. I also tried 7 and 1.6 for the value, but they also dont work.