Sign in to follow this  

[java] eclipse, running my program with older JRE

This topic is 4265 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am using Eclipse. I have the problem that I want to develop one of my projects with old version of the JRE while the other projects with the latest version. Any ideas how to solve this? Having 2 computers, one with old JRE and one with new JRE is not an option.

Share this post


Link to post
Share on other sites
Select Project->Properties and then open the Java Build Path section. Under 'Libraries' you can set the JDK you want to use for that project. You may also need to change some of the options under Java Compiler too.

Share this post


Link to post
Share on other sites
I'm not an Eclipse user (I use netbeans), but I'm pretty sure that you can register other Java platforms within your IDE. At least it's possible with Netbeans, and I don't see a reason why Eclipse wouldn't have such feature.

Check the help files, it should be easy to do so (if available).

Son Of Cain

[Edit: I was beaten by OrangyTang =]

Share this post


Link to post
Share on other sites
Go into menu "Project/Properties", select"Java Build Path" on the left side of the window, choose "Libraries" tab, and replace shown "JRE System Library" (and perhaps any other related library like "JDK Tools") by the older one.

Then choose "Java Compler" on the left side of the window, and pick the compiler compliance level suitable for the chosen JRE.


EDIT: OrangyTang was too fast ;)

Share this post


Link to post
Share on other sites

This topic is 4265 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this