Updating Eclipse to use a specific Java Runtime Environment (JRE) by default

Helpful? Then DOWNLOAD and RATE my app!

Helpful? Then DOWNLOAD and RATE my app!

Prerequisites

Problem

You installed a JRE on your operating system but your Eclipse IDE doesn’t seem to see it.

Solution

  1. Open Eclipse
  2. Select Windows -> Preferences -> Java -> Installed JREs
  3. Select the Add button -> StandardVM -> select the Directory button (next to JRE home)
  4. Select the path where the target JRE folder is located (e.g. C:\Program Files\Java\jre7) and hit OK.
  5. Select the checkbox next to the new JRE
  6. Still in the preferences dialog, select Java -> Installed JREs -> Execution Environments
  7. Select all environments and put a check next to all environments that can use the newly installed JRE
  8. Select Java -> Compiler -> Compiler Compliance Level -> Select the JRE you just installed
  9. Select Java -> Compiler -> Compiler Compliance Level -> De-select Use Default Compliance Settings
  10.  On the same screen, next to Generated .class files Compatibility, select the newly installed JRE from the dropdown
  11. On the same screen, next to Source Compatibility, select the newly installed JRE from the dropdown
  12. Select OK in the Preferences Dialog and your done.
Helpful? Then DOWNLOAD and RATE my app!

Helpful? Then DOWNLOAD and RATE my app!

Advertisements

Installing Java Runtime Environment 1.7 (JRE1.7)

Helpful? Then DOWNLOAD and RATE my app!

Helpful? Then DOWNLOAD and RATE my app!

Problem

You need to install a Java Runtime Environment (JRE) but don’t know where to start.

Solution

Installation is fairly simple once you find the desired version’s web address.

  1. Go to http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html
  2. Scroll down the page and locate your operating system
  3. Click the Accept License Agreement radial button
  4. Click the download link to the right of your operating system
  5. Save the file and allow it to install.

If you are using Windows x64 default settings the files should be located at C:\Program Files\Java\jre7

Helpful? Then DOWNLOAD and RATE my app!

Helpful? Then DOWNLOAD and RATE my app!