First make sure you have a Java runtime installed. Java 7 is recommended, and you can get the latest from
here.
Be careful when installing Java, or you may end up with an unwanted Ass Toolbar or Mccrappy Security. Uncheck the option to install these when prompted.