i had that same error. if you have java installed on your computer you may just need to set the path so your computer knows where to find it. you can do this by right clicking my computer > properties > advanced system settings > environment variables > in the bottom of the two scroll windows, called system variables, scroll down to the variable Path. Click edit > if there is a value already in the variable value line scroll to the end and put a ";". then type in your java path. mine for example is C:\Program Files (x86)\Java\jre6\bin
I have no idea how something else got into that space but your solution worked. Thank you.