Instructions for creating a Forkjoin project with Java 7
These instructions assume you're using Eclipse.
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.
- Get the setup program and run it
- I recommend installing it at the default path given; you'll need to point Eclipse to it later
- Default Windows path: C:\Program Files\Java\jre7
- Default Linux path (though I haven't tested it): /usr/lib/jvm/jre/jre-1.7.0-openjdk.x86_64
- 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 won't be available yet, 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