Generally speaking it should be safe to upgrade to the latest Java Runtime Environment (JRE) for your operating system , then uninstall previous releases using the “Java Uninstall Tool.” The Java Uninstall Tool will automatically figure out which releases are no longer required and remove them for you.