To uninstall JAVA refer to the link mentioned below:
If it is not uninstalled, you may use Revo uninstaller using the link mentioned below:
Please perform a deep scan to remove JAVA from registry as well.
NOTE: Backup the registry before doing any changes to registry.
To install JAVA refer to the link mentioned below:
Thanks & Regards