After updating to OS X 10.11, my java stopped working. I read multiple places that I should do a:
sudo mv /usr/bin/java /usr/bin/java.old
sudo ln -ns /Librar
Seems like the problem with the new System Integration Protection (a.k.a rootless) that just got introduced with the new OS X.
You could try to disable the rootless in recovery mode through these steps :
csrutil disable;reboot
. This will reboot the laptop.After that. Then, try to run the command again and see what will happen :D.