After installing El Capitan I was having some issues with some CC6 applications not working that required Java 6. El Capitan did not allow me to install Java 6 and Java 8 did not fix the problem, so I decided to abandon Java altogether. So I deleted what I could using...
sudo rm -fr /Library/Internet Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane
Now upon start up I get this alert: To use the "java" command-line tool you need to install a JDK. It also pops up at random times. Does anyone know how to stop this?