First, you need to find your Java Runtime Environment directory. It's usually
"C:\Program Files\Java\jre7\bin".
"C:\Program Files\Java\jre7\bin".
Copy the location, and open up "System properties" in Computer (Right click-> Properties when in Computer).
Now, go to Advanced System Settings, and click Environment Variables.
Select the "PATH" variable in the second list, and click Edit.
Move the cursor to the beginning of the textbox, and paste the location of the JRE.
Add a semicolon immediately after the location and press OK.
Close the remaining dialogs.
Select the "PATH" variable in the second list, and click Edit.
Move the cursor to the beginning of the textbox, and paste the location of the JRE.
Add a semicolon immediately after the location and press OK.
Close the remaining dialogs.
If you have Eclipse pinned to the taskbar, unpin it first, run the .exe, and pin it afterwards.