Security Compliance
Java uninstall switches
This article provides brief information and steps to resolve the issue when Java packages do not remove the older versions from the system.
First published date
Last published date
Overview
This article provides brief information and steps to resolve the issue when Java packages do not remove the older versions from the system.
An option is to uninstall Java with provided switches.
Note: Only out of date versions of Java will be removed. The last two releases will remain installed, as per Java limitations.
Product section
Resolution
https://docs.oracle.com/javase/8/doc...g_file_options (© 1993, 2018 Oracle, available at https://docs.oracle.com/, obtained on June 23, 2016)
- Select the Package in Administration and Reporting > Software Publishing > Sun Packages.
- Once the package is selected, right-click and click Edit.
- In the Title you want to update it to something that reflects that this package uninstalls so it creates a new package.
- Example: Java Runtime Environment 8u92 (x86 for x64) (Upgrade) Uninstall old versions
- Go to the Select Package page as seen below:
- In the Command Line type the following:
/s REMOVEOUTOFDATEJRES=1
- Click Next and continue to save the Package and Publish to WSUS.
Related Article - Java uninstall switches .
Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment. You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.