8

Can I uninstall the older updates?

Regarding updates, I am referring to those Update 1, Update 2, e.g. Java 7 Update 1, Java 7 Update 2, and so on.

I am speaking with respect to Java for Windows.

0

2 Answers 2

10

Should I uninstall older versions of Java?

We highly recommend that you uninstall all older versions of Java from your system. Keeping old versions of Java on your system presents a serious security risk. Uninstalling older versions of Java from your system ensures that Java applications will run with the latest security and performance improvements on your system.

Source: Why should I uninstall older versions of Java from my system?


The reason that the update doesn't remove the older version is to allow users to install more than one version of Java at the same time and then select different available Java versions for different applications, even though this is not recommended in Windows. See Oracle Java™ Runtime Environment Version Selection.

For uninstalling the older Java versions or updates, Oracle has released a separate application for uninstalling out-of-date versions of Java called Java Uninstall Tool for Windows. The Java Uninstall Tool for Windows runs with Java 6u10 and later versions on Windows XP and later up to Windows 8.

7
  • 5
    But why doesn't the update remove the older version for you? Or upgrade over the previous version. There must be a reason that it does leave the old version in place, even if its removal is recommended....
    – glallen
    Nov 23, 2014 at 11:41
  • 3
    The reason that the update doesn't remove the older version is to allow users to install more than one version of Java at the same time and then select different available Java versions for different applications, even though this is not recommended in Windows. See Oracle Java™ Runtime Environment Version Selection.
    – karel
    Nov 23, 2014 at 11:49
  • 3
    I was also wondering why they don't put a configurable option for whether you want to automatically uninstall the older versions or updates. As Java is having 50+ updates for a major release, those older updates eat up a lot of disk space. It's cumbersome to do manual uninstallations after each (auto) update...
    – cychoi
    Nov 23, 2014 at 13:41
  • 1
    The Java Plug-in locates JREs to use from the entries listed in the Java Control Panel ("Java" tab, "View" button under "Java Applet Runtime Settings"). The available JREs in this list are encoded in the deployment.properties file, which in Windows is generally located in C:\Documents and Settings\[username]\Application Data\Sun\Java\Deployment. For uninstalling the older Java versions or updates, Oracle has released a separate application for uninstalling out-of-date versions of Java called Java Uninstall Tool for Windows
    – karel
    Nov 23, 2014 at 13:50
  • 2
    It does remove older versions. Much older installers did not, but newer ones do. Also, the installer can be given an option that marks the installation as pinned. Future installers won't uninstall that version. This feature is intended for applications that require a specific version of java. Also, java versions that were installed before they changed the behavior to uninstall old versions will not be uninstalled. So at least one round of cleanup will be necessary if you have older versions that you don't need.
    – longneck
    Nov 28, 2014 at 13:58
6

In rare cases a newer version of Java is NOT compatible with your existing software.
(Java sometimes removes certain features when going to a new version. And, more often the case, some functions get a slightly different behavior, which breaks some applications that relied on the old behavior.)

This mostly happens with version upgrades: Like version 1.6 to version 1.7, but it can happen in very rare cases with a minor update like 1.7.1 - 1.7.2 as well.
And sometimes certain stupid software just insists on a specific Java version being present even though it will work flawlessly with a new version.
(I have seen software that checked for the presence of a specific Java folder belonging to version 1.5.x, but it would happily work on 1.6.x as long as the folder existed. There weren't even any files in that folder.)

Because of all this it must be possible to run 2 or more versions in parallel and removing the old version isn't default.

P.S. Applications that really rely on a specific version of the Java run-time should use a private copy of that specific version inside their own program environment, in stead of using the version installed at the OS level. (This embedded copy will never be upgraded, except via an upgrade of the application that uses it.)
This is the recommended way of doing this, but not all software plays by the rules.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .