many improvements to java uninstall

closes #3760