|How do turn missing execution env warning into an error? [message #879191]
||Wed, 30 May 2012 13:52
| Scott Hamilton
Registered: May 2012
This is eclipse 3.6 (more specifically, MyEclipse 9.1 built on Eclipse 3.6).
We've got a mix of projects in our workspace where some of them have a J2SE-1.5 execution environment specified. Since 90% of our projects are Java 6 projects, most of us just have the JDK 1.6 installed and set up. So we get the warning in the problems pane:
"Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment."
This causes problems with folks (like me - I'm guilty too) ignore the warning and don't install a 1.5-compatible JDK, since JDT seems to just go ahead and use the default JRE to compile those projects, which will have some new APIs that are not 1.5 compatible.
I've looked thru the preferences to see if there is a way to upgrade this from a WARNING into an ERROR but am not seeing a way. Am I missing something? Can it be turned into an error somehow?
Powered by FUDForum
. Page generated in 0.04298 seconds