ellroy, the reason that your computer got infected with malware is because you have a VERY old, out-dated version of "java" installed on it.. you need to uninstall all of the old versions of "java" that are installed on your computer..
exploit-kits take advantage of vulnerabilities in "java" in order to install malware on your computer.. with an old version of java installed, your computer is at an EXTREMELY high risk of being infected with malware..
it is better to not have "java" installed, but, if you absolutely have to have it installed, you need to keep it up-to-date.. also, be sure to uninstall the old versions..