@ frustrated83
Without details of the actual detection, file name, malware name and location it is hard to say or offer any specific suggestion.

If as I suspect these were detected in the JAVA cache and not essentially part of the JAVA installation, then if JAVA isn’t the latest version it could be that vulnerabilities in old versions are being exploited.

So having uninstalled JAVA that would also have got rid of the JAVA cache.