Uninstall Java 8 properly. Fixes #3760
Merge pull request #4541 from ahbeng/java-8-uninstall

Uninstall Java 8 properly. Fixes #3760