It probably is some sort of java based malware. Run some anti-virusscans and/or malware scan such as malwarebytes or hijackthis. After downloading, installing and updating these programs empty your temporary (internet) files and run a full scan.
And you can safely uninstall java from your computer, unless you actually need it for something.