Okay, but which execution environment? You can set the compiler compliance level at the top level, and you can override it at the level of an individual project. And you can set up a list of installed JREs at the top level, and choose one of those at the level of an individual project.
I can't tell which of those four things, if any, you are referring to. Anyway check them out in your Eclipse and see if they do what you want.
Joined: Nov 23, 2011
let me explain my steps,
1. selected project(MyFirstApp)
2. right click properties ->Java Build Path -> libraries -> add Library -> JRE Systems Library -> Execution Environment
So, here i was trying to change the execution environment. I do not even sure where I spouse to change it. I was searching online and one of the suggestion was this.
Oh, I see. Sorry, I haven't ever used an execution environment in Eclipse. I don't really know what they are for. Are you sure you want to use one? Your original post didn't say anything about that.
If you just want to select jre7 instead of jre6 in your build path, then try this: Configure Build Path > Libraries > select Java System Library [jre6] > Edit > select jre7 from the dropdown > Finish > OK.