File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes how to change jre6 to jre7 in eclipse environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "how to change jre6 to jre7 in eclipse environment" Watch "how to change jre6 to jre7 in eclipse environment" New topic
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: 18712
    
    8

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: 18712
    
    8

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: 18712
    
    8

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: 459
    
    1
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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to change jre6 to jre7 in eclipse environment