This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
There is no way to configure a project to use one JDK to build and another to run. This is important if a product must use a standard build version yet support newer versions at runtime.
Reassigning.
Possible to override targets in build.xml to run against a newer JDK, though debugger breakpoints etc. would then be wrong. Could override targets to build against an older JDK, but then the editor would be wrong. (See blocking issue.) Best is probably to build & run against newer JDK, but also inject a build step to verify that newer APIs are not being used accidentally. With a Maven project this is trivial, using the Animal Sniffer plugin. For an Ant-based project this would not be so easy. Probably WONTFIX but Tomáš can evaluate.
When time permits we can add a runtime platform.