Late, but for anyone who might run across this in future, I was just able to resolve this on a system reporting the same error for multiple JDKs. Turns out SIP was disabled for some unknown reason, re-enabling resolved it.
To check its status on your machine, run csrutil status. If the output shows that SIP is disabled, run sudo csrutil clear and reboot.