Instructions for creating an Eclipse project with Java 7
In Eclipse, there are generally many ways to do the same thing; the procedure below should work, but there may be other ways as well.
- If it's not on your computer, download Java 7. It should already be on cse lab computers.
- Create a 'New Java Project' from the File menu
- On this first window, you need to set it to 'Use a project specific JRE' of 'jre7'. If this is your first Java 7 project, that option may not be available yet (depends on a few other factors), so you need to do the following:
- Click the 'Configure JREs' link
- Click 'Add' to add a new JRE to the table
- It will ask you what type; select 'Standard VM' and hit Next
- In the 'JRE home' box, type the path at which Java 7 was installed - the other items should get auto-filled-in as soon as you supply the correct path
- Click 'Finish'
- 'jre7' should now have a row in the table; click 'Ok'
- Now when you select 'Use a project specific JRE', 'jre7' should show up - select it for this project
- Fill in the usual stuff for your project (name, path, etc.)
- Now you should be able to just select 'Use a project specific JRE' to be 'jre7' in the future