Java Update--Endless loop of internet connection request boxes
After being out town for a week or two, I updated Java today. I normally keep Java turned off in Safari. Following what it said was a successful installation, I continue to get a dialogue box asking if I want to allow Java to accept incoming internet connections. These flash up very briefly, and I have to be very quick and accurate to get control of the box. It doesn't matter if I select Deny or Allow, the box just keeps loading, seizing control and disrupting other processes, e.g., just typing this message was a start and stop process. The only way to stop the box jumping up is to turn off my firewall. I've deleted Java completely and these boxes still keep flashing up, making the computer effectively unusable. Any ideas as to how to solve this problem?
iMac (27-inch Late 2009), OS X Mountain Lion