If you get into this error while installing Java on Window 8:
Just delete this file:
<User Application Data Folder>\LocalLow\Sun\Java\Deployment\deployment.properties
Just delete this file:
<User Application Data Folder>\LocalLow\Sun\Java\Deployment\deployment.properties