Thanks for letting us know what fixed things for you
Just in case you ever need it in future, the Java site has the option to install either online or offline. On this Java page
Java SE Downloads - Sun Developer Network (SDN) choose Java SE Runtime Environment (JRE).
On the next page, choose your platform, tick the license agreement box & click 'Continue'.
On the next page you'll see options for Offline, Kernel or Online installations... tick the Offline option. Using the offline installer can mean less chance of a corrupted installation