Jump to content
  • Advertisement
Sign in to follow this  
balla_the_king

[java] eclipse, running my program with older JRE

This topic is 4450 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!