Disable the Facebook plugin that is trying to run with Java
I had a similar issue to the OP. It turns out that I have a Facebook Video Chat plug-in that was requesting the JRE every time I started my Mac.
Removing the plug-in using the steps below solved my problem:
Open Terminal and enter the code,
Code:
launchctl list | grep facebook
The result displayed will be similar to this, except <yourname> will be replaced by your Facebook username,
- 1 com.facebook.videochat.<yourname>.updater
- 0 com.apple.facebook.xpc
To remove the offending process, enter the code, remembering to replace <yourname> with your own Facebook username,
Code:
launchctl remove com.facebook.videochat.<yourname>.updater
Note: I found this in the comments on another site, but it fixed the error for me after months of searching for malware and other things so I reposted here in the hope it might help others who don't actually want to install Java and let this software continue to run in the background.