You can check to see if Java is installed here. You probably got a popup to "update or install" "Java" (malware) from a malicious webpage.

Do you have updated antivirus installed on the machine? If not there are several free versions to chose from. If your still experiencing the same problem, does it happen only in one browser or all of them?