How do I completely remove Java from High Sierra
I don't seem to be able to completely remove Java from High Sierra in order to install the older version. The legacy version is required for Dreamweaver CS5. I've follow the directions on the Apple discussions regarding the Terminal commands, but I still get the same error.
I've run the following commands, as suggested in support articles, but I still get the error shown above.
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Java
The only Java files I can still find are in system\library\java but they can't be deleted, even with Admin rights. I tried logging on in Safe Mode but ran into the same error.
Does anyone know which files are causing the error and can be deleted? I'm dead in the water with Dreamweaver until I can resolve this and install the legacy version of Java.
MacBook Pro with Retina display, macOS Sierra (10.12.2), Late 2016 with Touchbar