| Author |
how to change jre6 to jre7 in eclipse environment
|
Janki Shah
Ranch Hand
Joined: Nov 23, 2011
Posts: 136
|
|
|
I am trying to change jre6 to jre7 in eclipse environment. Can some one please help me?
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
Since the post is about Eclipse, I moved it to the IDEs forum.
Anyway: what have you tried so far, and what problems did you have with that?
|
 |
Janki Shah
Ranch Hand
Joined: Nov 23, 2011
Posts: 136
|
|
|
I tried changing the execution environment by selecting jre1.7(unbound). but comes to default which in my case jre1.6.
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
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.
|
 |
Janki Shah
Ranch Hand
Joined: Nov 23, 2011
Posts: 136
|
|
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.
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
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.
|
 |
Vinod Tiwari
Ranch Hand
Joined: Feb 06, 2008
Posts: 458
|
|
Follow below steps:
1) In Eclipse, go to Project -> Properties -> Java Build Path
2) Then go to Libraries tab, Select JRE and click Edit button.
Then change the JRE.
|
Vinod Tiwari | Twitter
|
 |
Janki Shah
Ranch Hand
Joined: Nov 23, 2011
Posts: 136
|
|
|
@Paul & @Vinod : thank you the simplest way worked that you have suggested!
|
 |
 |
|
|
subject: how to change jre6 to jre7 in eclipse environment
|
|
|