I have users who have installed Java 6, Java 7 and I am planning to deploy Java 8 update 311 in all the user's systems. Is there a way I can uninstall old Java versions all at once silently in one command line?
I found this command but it seems not to work as it just installs the software mentioned.

I know there is Java uninstall tool, but is there a way I can run this tool silently without UI to uninstall older versions?
I tried to run it silently but it always pops up with a UI.